Skip to content

Commit ddf0442

Browse files
committed
[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
1 parent 3cad8ad commit ddf0442

File tree

40 files changed

+42
-39
lines changed

40 files changed

+42
-39
lines changed

lldb/packages/Python/lldbsuite/test/commands/apropos/with-process/TestAproposWithProcess.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
class AproposWithProcessTestCase(TestBase):
1313

1414
mydir = TestBase.compute_mydir(__file__)
15+
NO_DEBUG_INFO_TESTCASE = True
1516

1617
def setUp(self):
1718
# Call super's setUp().

lldb/packages/Python/lldbsuite/test/commands/command/nested_alias/TestNestedAlias.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
class NestedAliasTestCase(TestBase):
1313

1414
mydir = TestBase.compute_mydir(__file__)
15+
NO_DEBUG_INFO_TESTCASE = True
1516

1617
def setUp(self):
1718
# Call super's setUp().

lldb/packages/Python/lldbsuite/test/commands/command/script_alias/TestCommandScriptAlias.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
class CommandScriptAliasTestCase(TestBase):
1212

1313
mydir = TestBase.compute_mydir(__file__)
14+
NO_DEBUG_INFO_TESTCASE = True
1415

1516
def test_pycmd(self):
1617
self.runCmd("command script import tcsacmd.py")

lldb/packages/Python/lldbsuite/test/commands/expression/calculator_mode/TestCalculatorMode.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class TestCalculatorMode(TestBase):
1414

1515
mydir = TestBase.compute_mydir(__file__)
16+
NO_DEBUG_INFO_TESTCASE = True
1617

1718
def test__calculator_mode(self):
1819
"""Test calling expressions in the dummy target."""

lldb/packages/Python/lldbsuite/test/commands/process/attach-resume/TestAttachResume.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
class AttachResumeTestCase(TestBase):
1616

1717
mydir = TestBase.compute_mydir(__file__)
18+
NO_DEBUG_INFO_TESTCASE = True
1819

1920
@skipIfRemote
2021
@expectedFailureAll(oslist=['freebsd'], bugnumber='llvm.org/pr19310')

lldb/packages/Python/lldbsuite/test/commands/process/launch-with-shellexpand/TestLaunchWithShellExpand.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class LaunchWithShellExpandTestCase(TestBase):
1414

1515
mydir = TestBase.compute_mydir(__file__)
16+
NO_DEBUG_INFO_TESTCASE = True
1617

1718
@expectedFailureAll(
1819
oslist=[

lldb/packages/Python/lldbsuite/test/commands/statistics/basic/TestStats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
from lldbsuite.test import decorators
33

44
lldbinline.MakeInlineTest(
5-
__file__, globals(), [])
5+
__file__, globals(), [decorators.no_debug_info_test])

lldb/packages/Python/lldbsuite/test/commands/target/create-no-such-arch/TestNoSuchArch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
class NoSuchArchTestCase(TestBase):
1212

1313
mydir = TestBase.compute_mydir(__file__)
14+
NO_DEBUG_INFO_TESTCASE = True
1415

1516
def test(self):
1617
self.build()

lldb/packages/Python/lldbsuite/test/commands/watchpoints/hello_watchlocation/TestWatchLocation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
class HelloWatchLocationTestCase(TestBase):
1515

1616
mydir = TestBase.compute_mydir(__file__)
17+
NO_DEBUG_INFO_TESTCASE = True
1718

1819
def setUp(self):
1920
# Call super's setUp().

lldb/packages/Python/lldbsuite/test/commands/watchpoints/hello_watchpoint/TestMyFirstWatchpoint.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class HelloWatchpointTestCase(TestBase):
1414

1515
mydir = TestBase.compute_mydir(__file__)
16+
NO_DEBUG_INFO_TESTCASE = True
1617

1718
def setUp(self):
1819
# Call super's setUp().

lldb/packages/Python/lldbsuite/test/commands/watchpoints/step_over_watchpoint/TestStepOverWatchpoint.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
class TestStepOverWatchpoint(TestBase):
1212

1313
mydir = TestBase.compute_mydir(__file__)
14+
NO_DEBUG_INFO_TESTCASE = True
1415

1516
@expectedFailureAll(
1617
oslist=["linux"],

lldb/packages/Python/lldbsuite/test/commands/watchpoints/variable_out_of_scope/TestWatchedVarHitWhenInScope.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
class WatchedVariableHitWhenInScopeTestCase(TestBase):
1515

1616
mydir = TestBase.compute_mydir(__file__)
17+
NO_DEBUG_INFO_TESTCASE = True
1718

1819
# This test depends on not tracking watchpoint expression hits if we have
1920
# left the watchpoint scope. We will provide such an ability at some point

lldb/packages/Python/lldbsuite/test/commands/watchpoints/watchpoint_commands/TestWatchpointCommands.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class WatchpointCommandsTestCase(TestBase):
1414

1515
mydir = TestBase.compute_mydir(__file__)
16+
NO_DEBUG_INFO_TESTCASE = True
1617

1718
def setUp(self):
1819
# Call super's setUp().

lldb/packages/Python/lldbsuite/test/commands/watchpoints/watchpoint_commands/command/TestWatchpointCommandLLDB.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class WatchpointLLDBCommandTestCase(TestBase):
1414

1515
mydir = TestBase.compute_mydir(__file__)
16+
NO_DEBUG_INFO_TESTCASE = True
1617

1718
def setUp(self):
1819
# Call super's setUp().

lldb/packages/Python/lldbsuite/test/commands/watchpoints/watchpoint_commands/command/TestWatchpointCommandPython.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
class WatchpointPythonCommandTestCase(TestBase):
1515

1616
mydir = TestBase.compute_mydir(__file__)
17+
NO_DEBUG_INFO_TESTCASE = True
1718

1819
def setUp(self):
1920
# Call super's setUp().

lldb/packages/Python/lldbsuite/test/commands/watchpoints/watchpoint_commands/condition/TestWatchpointConditionCmd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class WatchpointConditionCmdTestCase(TestBase):
1414

1515
mydir = TestBase.compute_mydir(__file__)
16+
NO_DEBUG_INFO_TESTCASE = True
1617

1718
def setUp(self):
1819
# Call super's setUp().

lldb/packages/Python/lldbsuite/test/commands/watchpoints/watchpoint_disable/TestWatchpointDisable.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
class TestWatchpointSetEnable(TestBase):
1212
mydir = TestBase.compute_mydir(__file__)
13+
NO_DEBUG_INFO_TESTCASE = True
1314

1415
def test_disable_works (self):
1516
"""Set a watchpoint, disable it, and make sure it doesn't get hit."""

lldb/packages/Python/lldbsuite/test/commands/watchpoints/watchpoint_events/TestWatchpointEvents.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
class TestWatchpointEvents (TestBase):
1313

1414
mydir = TestBase.compute_mydir(__file__)
15+
NO_DEBUG_INFO_TESTCASE = True
1516

1617
def setUp(self):
1718
# Call super's setUp().

lldb/packages/Python/lldbsuite/test/commands/watchpoints/watchpoint_on_vectors/TestValueOfVectorVariable.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class TestValueOfVectorVariableTestCase(TestBase):
1414

1515
mydir = TestBase.compute_mydir(__file__)
16+
NO_DEBUG_INFO_TESTCASE = True
1617

1718
def test_value_of_vector_variable_using_watchpoint_set(self):
1819
"""Test verify displayed value of vector variable."""

lldb/packages/Python/lldbsuite/test/commands/watchpoints/watchpoint_set_command/TestWatchLocationWithWatchSet.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
class WatchLocationUsingWatchpointSetTestCase(TestBase):
1414

1515
mydir = TestBase.compute_mydir(__file__)
16+
NO_DEBUG_INFO_TESTCASE = True
1617

1718
def setUp(self):
1819
# Call super's setUp().
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from lldbsuite.test import lldbinline
2+
from lldbsuite.test import decorators
23

3-
lldbinline.MakeInlineTest(__file__, globals())
4+
lldbinline.MakeInlineTest(__file__, globals(), [decorators.no_debug_info_test])
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
from lldbsuite.test import lldbinline
2+
from lldbsuite.test import decorators
23

3-
lldbinline.MakeInlineTest(__file__, globals())
4+
lldbinline.MakeInlineTest(__file__, globals(), [decorators.no_debug_info_test])

lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
class DebuggerAPITestCase(TestBase):
1313

1414
mydir = TestBase.compute_mydir(__file__)
15+
NO_DEBUG_INFO_TESTCASE = True
1516

1617
@add_test_categories(['pyapi'])
17-
@no_debug_info_test
1818
def test_debugger_api_boundary_condition(self):
1919
"""Exercise SBDebugger APIs with boundary conditions."""
2020
self.dbg.HandleCommand(None)

0 commit comments

Comments
 (0)