summaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-01-02 19:26:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-01-02 19:26:05 +0000
commit14f1b3e8826ce43b978db93a62d1166055db5394 (patch)
tree0a00ad8d3498783fe0193f3b656bca17c4c8697d /packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py
parent4ee8c119c71a06dcad1e0fecc8c675e480e59337 (diff)
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py')
-rw-r--r--packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py b/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py
new file mode 100644
index 0000000000000..a594ad2c9e448
--- /dev/null
+++ b/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py
@@ -0,0 +1,17 @@
+"""
+Add a test to verify our test instance returns something non-None for
+an id(). Other parts of the test running infrastructure are counting on this.
+"""
+
+from __future__ import print_function
+from lldbsuite.test.lldbtest import TestBase
+
+class TestIdTestCase(TestBase):
+
+ NO_DEBUG_INFO_TESTCASE = True
+
+ mydir = TestBase.compute_mydir(__file__)
+
+ def test_id_exists(self):
+ self.assertIsNotNone(self.id(), "Test instance should have an id()")
+