[Lldb-commits] [lldb] r283156 - add a simple test case to validate test id()
Todd Fiala via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 3 15:49:14 PDT 2016
Author: tfiala
Date: Mon Oct 3 17:49:13 2016
New Revision: 283156
URL: http://llvm.org/viewvc/llvm-project?rev=283156&view=rev
Log:
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.
Added:
lldb/trunk/packages/Python/lldbsuite/test/functionalities/testid/
lldb/trunk/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py
Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py?rev=283156&view=auto
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py (added)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/testid/TestTestId.py Mon Oct 3 17:49:13 2016
@@ -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()")
+
More information about the lldb-commits
mailing list