diff options
author | Paul Robinson <paul.robinson@sony.com> | 2016-11-30 22:47:25 +0000 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2016-11-30 22:47:25 +0000 |
commit | ba6a9a06fd68d1a408f82cb056d6ce978bade4f8 (patch) | |
tree | 358e7b4e04cd4525c8ac7d7c59af7467c51b5cf9 /lldb/packages/Python/lldbsuite | |
parent | 05f7791fbf59e5a19ff79ed1175e7042100da8e8 (diff) | |
download | bcm5719-llvm-ba6a9a06fd68d1a408f82cb056d6ce978bade4f8.tar.gz bcm5719-llvm-ba6a9a06fd68d1a408f82cb056d6ce978bade4f8.zip |
PR31214: Make a test tolerate "line 0" when stepping by instruction.
Differential Revision: http://reviews.llvm.org/D27282
llvm-svn: 288282
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/thread/exit_during_step/TestExitDuringStep.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/thread/exit_during_step/TestExitDuringStep.py b/lldb/packages/Python/lldbsuite/test/functionalities/thread/exit_during_step/TestExitDuringStep.py index c27bd2d3e4d..4ba04953d6f 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/thread/exit_during_step/TestExitDuringStep.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/thread/exit_during_step/TestExitDuringStep.py @@ -23,7 +23,8 @@ class ExitDuringStepTestCase(TestBase): self.build(dictionary=self.getBuildFlags()) self.exit_during_step_base( "thread step-inst -m all-threads", - 'stop reason = instruction step') + 'stop reason = instruction step', + True) @skipIfFreeBSD # llvm.org/pr21411: test is hanging def test_step_over(self): @@ -31,7 +32,8 @@ class ExitDuringStepTestCase(TestBase): self.build(dictionary=self.getBuildFlags()) self.exit_during_step_base( "thread step-over -m all-threads", - 'stop reason = step over') + 'stop reason = step over', + False) @skipIfFreeBSD # llvm.org/pr21411: test is hanging def test_step_in(self): @@ -39,7 +41,8 @@ class ExitDuringStepTestCase(TestBase): self.build(dictionary=self.getBuildFlags()) self.exit_during_step_base( "thread step-in -m all-threads", - 'stop reason = step in') + 'stop reason = step in', + False) def setUp(self): # Call super's setUp(). @@ -48,7 +51,7 @@ class ExitDuringStepTestCase(TestBase): self.breakpoint = line_number('main.cpp', '// Set breakpoint here') self.continuepoint = line_number('main.cpp', '// Continue from here') - def exit_during_step_base(self, step_cmd, step_stop_reason): + def exit_during_step_base(self, step_cmd, step_stop_reason, by_instruction): """Test thread exit during step handling.""" exe = os.path.join(os.getcwd(), "a.out") self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) @@ -111,6 +114,9 @@ class ExitDuringStepTestCase(TestBase): current_line = frame.GetLineEntry().GetLine() + if by_instruction and current_line == 0: + continue + self.assertGreaterEqual( current_line, self.breakpoint, |