summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py
diff options
context:
space:
mode:
authorTodd Fiala <todd.fiala@gmail.com>2016-10-03 22:49:13 +0000
committerTodd Fiala <todd.fiala@gmail.com>2016-10-03 22:49:13 +0000
commit44761a6e47f8ebe314bfd4c7278e630538c286b8 (patch)
treebc2d2c8129bc995981b2b466c54502c8cd38f28c /lldb/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py
parent97e3b6d895baaebd243efbb4821d38cd10d6ae75 (diff)
downloadbcm5719-llvm-44761a6e47f8ebe314bfd4c7278e630538c286b8.tar.gz
bcm5719-llvm-44761a6e47f8ebe314bfd4c7278e630538c286b8.zip
add a simple test case to validate test id()
Since we count on it in a few places, the test verifies that the test instance has an id() method that returns something non-None. llvm-svn: 283156
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py b/lldb/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py
new file mode 100644
index 00000000000..a594ad2c9e4
--- /dev/null
+++ b/lldb/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()")
+
OpenPOWER on IntegriCloud