summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/stop-hook/TestStopHookCmd.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/stop-hook/TestStopHookCmd.py')
-rw-r--r--lldb/test/functionalities/stop-hook/TestStopHookCmd.py26
1 files changed, 7 insertions, 19 deletions
diff --git a/lldb/test/functionalities/stop-hook/TestStopHookCmd.py b/lldb/test/functionalities/stop-hook/TestStopHookCmd.py
index 8453cc340a2..14017c7a8cf 100644
--- a/lldb/test/functionalities/stop-hook/TestStopHookCmd.py
+++ b/lldb/test/functionalities/stop-hook/TestStopHookCmd.py
@@ -13,24 +13,6 @@ class StopHookCmdTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
- # Regression test.
- def test_not_crashing_if_no_target(self):
- """target stop-hook list should not crash if no target has been set."""
- self.runCmd("target stop-hook list", check=False)
-
- @skipUnlessDarwin
- @dsym_test
- def test_with_dsym(self):
- """Test a sequence of target stop-hook commands."""
- self.buildDsym()
- self.stop_hook_cmd_sequence()
-
- @dwarf_test
- def test_with_dwarf(self):
- """Test a sequence of target stop-hook commands."""
- self.buildDwarf()
- self.stop_hook_cmd_sequence()
-
def setUp(self):
# Call super's setUp().
TestBase.setUp(self)
@@ -39,8 +21,14 @@ class StopHookCmdTestCase(TestBase):
self.endl = line_number('main.cpp', '// End of the line range for which stop-hook is to be run.')
self.line = line_number('main.cpp', '// Another breakpoint which is outside of the stop-hook range.')
- def stop_hook_cmd_sequence(self):
+ @no_debug_info_test
+ def test_not_crashing_if_no_target(self):
+ """target stop-hook list should not crash if no target has been set."""
+ self.runCmd("target stop-hook list", check=False)
+
+ def test(self):
"""Test a sequence of target stop-hook commands."""
+ self.build()
exe = os.path.join(os.getcwd(), "a.out")
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
OpenPOWER on IntegriCloud