diff options
author | Raphael Isemann <teemperor@gmail.com> | 2020-01-13 10:00:06 +0100 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2020-01-13 10:40:29 +0100 |
commit | ddf044290ede7d7fd47f4f673e3e628f551a8aac (patch) | |
tree | 40108d64eeac4ae95547c672fb3a9bb0d66e169f /lldb/packages/Python/lldbsuite/test/python_api/default-constructor | |
parent | 3cad8ada4947dc6793e5af56d6dd0e6eed9e570f (diff) | |
download | bcm5719-llvm-ddf044290ede7d7fd47f4f673e3e628f551a8aac.tar.gz bcm5719-llvm-ddf044290ede7d7fd47f4f673e3e628f551a8aac.zip |
[lldb] Mark several tests as not dependent on debug info
Summary:
This just adds `NO_DEBUG_INFO_TESTCASE` to tests that don't really exercise anything debug information specific
and therefore don't need to be rerun for all debug information variants.
Reviewers: labath, jingham, aprantl, mib, jfb
Reviewed By: aprantl
Subscribers: dexonsmith, JDevlieghere, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D72447
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/default-constructor')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py | 36 |
1 files changed, 1 insertions, 35 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py b/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py index 75bd4a6760d..e00206587ed 100644 --- a/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py +++ b/lldb/packages/Python/lldbsuite/test/python_api/default-constructor/TestDefaultConstructorForAPIObjects.py @@ -23,9 +23,9 @@ from lldbsuite.test import lldbutil class APIDefaultConstructorTestCase(TestBase): mydir = TestBase.compute_mydir(__file__) + NO_DEBUG_INFO_TESTCASE = True @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBAddress(self): obj = lldb.SBAddress() if self.TraceOn(): @@ -36,7 +36,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_address.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBBlock(self): obj = lldb.SBBlock() if self.TraceOn(): @@ -47,7 +46,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_block.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBBreakpoint(self): obj = lldb.SBBreakpoint() if self.TraceOn(): @@ -58,7 +56,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_breakpoint.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBBreakpointLocation(self): obj = lldb.SBBreakpointLocation() if self.TraceOn(): @@ -69,7 +66,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_breakpointlocation.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBBreakpointName(self): obj = lldb.SBBreakpointName() if self.TraceOn(): @@ -80,7 +76,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_breakpointname.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBBroadcaster(self): obj = lldb.SBBroadcaster() if self.TraceOn(): @@ -91,7 +86,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_broadcaster.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBCommandReturnObject(self): """SBCommandReturnObject object is valid after default construction.""" obj = lldb.SBCommandReturnObject() @@ -100,7 +94,6 @@ class APIDefaultConstructorTestCase(TestBase): self.assertTrue(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBCommunication(self): obj = lldb.SBCommunication() if self.TraceOn(): @@ -111,7 +104,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_communication.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBCompileUnit(self): obj = lldb.SBCompileUnit() if self.TraceOn(): @@ -122,7 +114,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_compileunit.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBDebugger(self): obj = lldb.SBDebugger() if self.TraceOn(): @@ -133,7 +124,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_debugger.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test # darwin: This test passes with swig 3.0.2, fails w/3.0.5 other tests fail # with 2.0.12 http://llvm.org/pr23488 def test_SBError(self): @@ -146,7 +136,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_error.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBEvent(self): obj = lldb.SBEvent() # This is just to test that typemap, as defined in lldb.swig, works. @@ -171,7 +160,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_filespec.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBFrame(self): obj = lldb.SBFrame() if self.TraceOn(): @@ -182,7 +170,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_frame.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBFunction(self): obj = lldb.SBFunction() if self.TraceOn(): @@ -193,7 +180,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_function.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBFile(self): sbf = lldb.SBFile() self.assertFalse(sbf.IsValid()) @@ -207,7 +193,6 @@ class APIDefaultConstructorTestCase(TestBase): self.assertTrue(e.Fail()) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBInstruction(self): obj = lldb.SBInstruction() if self.TraceOn(): @@ -218,7 +203,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_instruction.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBInstructionList(self): obj = lldb.SBInstructionList() if self.TraceOn(): @@ -229,7 +213,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_instructionlist.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBLineEntry(self): obj = lldb.SBLineEntry() if self.TraceOn(): @@ -240,7 +223,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_lineentry.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBListener(self): obj = lldb.SBListener() if self.TraceOn(): @@ -251,7 +233,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_listener.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test # Py3 asserts due to a bug in SWIG. Trying to upstream a patch to fix # this in 3.0.8 @skipIf(py_version=['>=', (3, 0)], swig_version=['<', (3, 0, 8)]) @@ -265,7 +246,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_module.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBProcess(self): obj = lldb.SBProcess() if self.TraceOn(): @@ -276,7 +256,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_process.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBProcessInfo(self): obj = lldb.SBProcessInfo() if self.TraceOn(): @@ -287,7 +266,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_process_info.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBSection(self): obj = lldb.SBSection() if self.TraceOn(): @@ -298,7 +276,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_section.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBStream(self): """SBStream object is valid after default construction.""" obj = lldb.SBStream() @@ -307,7 +284,6 @@ class APIDefaultConstructorTestCase(TestBase): self.assertTrue(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBStringList(self): obj = lldb.SBStringList() if self.TraceOn(): @@ -318,7 +294,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_stringlist.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBSymbol(self): obj = lldb.SBSymbol() if self.TraceOn(): @@ -329,7 +304,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_symbol.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBSymbolContext(self): obj = lldb.SBSymbolContext() if self.TraceOn(): @@ -340,7 +314,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_symbolcontext.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBSymbolContextList(self): """SBSymbolContextList object is valid after default construction.""" obj = lldb.SBSymbolContextList() @@ -349,7 +322,6 @@ class APIDefaultConstructorTestCase(TestBase): self.assertTrue(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBTarget(self): obj = lldb.SBTarget() if self.TraceOn(): @@ -360,7 +332,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_target.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBThread(self): obj = lldb.SBThread() if self.TraceOn(): @@ -371,7 +342,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_thread.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBType(self): try: obj = lldb.SBType() @@ -390,7 +360,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_type.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBTypeList(self): """SBTypeList object is valid after default construction.""" obj = lldb.SBTypeList() @@ -399,7 +368,6 @@ class APIDefaultConstructorTestCase(TestBase): self.assertTrue(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBValue(self): obj = lldb.SBValue() if self.TraceOn(): @@ -410,7 +378,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_value.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBValueList(self): obj = lldb.SBValueList() if self.TraceOn(): @@ -421,7 +388,6 @@ class APIDefaultConstructorTestCase(TestBase): sb_valuelist.fuzz_obj(obj) @add_test_categories(['pyapi']) - @no_debug_info_test def test_SBWatchpoint(self): obj = lldb.SBWatchpoint() if self.TraceOn(): |