diff options
| author | Dawn Perchik <dawn@burble.org> | 2015-06-23 19:21:44 +0000 |
|---|---|---|
| committer | Dawn Perchik <dawn@burble.org> | 2015-06-23 19:21:44 +0000 |
| commit | 06ffe15adf5b88dca0c351504c37883182638915 (patch) | |
| tree | dda7d0dfff7a3cc7f67b96da5ff3e1c2213319e8 | |
| parent | 72d16a581bcd03bb77e6be2848b956db1dd93596 (diff) | |
| download | bcm5719-llvm-06ffe15adf5b88dca0c351504c37883182638915.tar.gz bcm5719-llvm-06ffe15adf5b88dca0c351504c37883182638915.zip | |
Fix FIXME comments in MiBreakTestCase.test_lldbmi_break_insert_settings as suggested by abidh (MI)
llvm-svn: 240444
| -rw-r--r-- | lldb/test/tools/lldb-mi/breakpoint/TestMiBreak.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/lldb/test/tools/lldb-mi/breakpoint/TestMiBreak.py b/lldb/test/tools/lldb-mi/breakpoint/TestMiBreak.py index 498c499b177..ac71e428b4c 100644 --- a/lldb/test/tools/lldb-mi/breakpoint/TestMiBreak.py +++ b/lldb/test/tools/lldb-mi/breakpoint/TestMiBreak.py @@ -179,37 +179,34 @@ class MiBreakTestCase(lldbmi_testcase.MiTestCaseBase): self.expect("\^done,bkpt={number=\"1\"") # Test that non-pending BP will not be set on non-existing line if target.move-to-nearest-code=off + # Note: this increases the BP number by 1 even though BP #2 is invalid. self.runCmd("-break-insert main.cpp:%d" % line) self.expect("\^error,msg=\"Command 'break-insert'. Breakpoint location 'main.cpp:%d' not found\"" % line) - # Set target.move-to-nearest-code=on and target.skip-prologue=on and set BP #2 + # Set target.move-to-nearest-code=on and target.skip-prologue=on and set BP #3 self.runCmd("-interpreter-exec console \"settings set target.move-to-nearest-code on\"") self.runCmd("-interpreter-exec console \"settings set target.skip-prologue on\"") self.expect("\^done") - # FIXME BP was increased by 1 after setting non-pending BP on unknown location (number should be 2) self.runCmd("-break-insert main.cpp:%d" % line) self.expect("\^done,bkpt={number=\"3\"") - # Set target.skip-prologue=off and set BP #3 + # Set target.skip-prologue=off and set BP #4 self.runCmd("-interpreter-exec console \"settings set target.skip-prologue off\"") self.expect("\^done") - # FIXME BP was increased by 1 after setting non-pending BP on unknown location (number should be 3) self.runCmd("-break-insert main.cpp:%d" % line) self.expect("\^done,bkpt={number=\"4\"") - # Test that BP #3 is located before BP #2 + # Test that BP #4 is located before BP #3 self.runCmd("-exec-run") self.expect("\^running") - # FIXME BP was increased by 1 after setting non-pending BP on unknown location (bkptno should be 3) self.expect("\*stopped,reason=\"breakpoint-hit\",disp=\"del\",bkptno=\"4\"") - # Test that BP #2 is hit + # Test that BP #3 is hit self.runCmd("-exec-continue") self.expect("\^running") - # FIXME BP was increased by 1 after setting non-pending BP on unknown location (bkptno should be 2) self.expect("\*stopped,reason=\"breakpoint-hit\",disp=\"del\",bkptno=\"3\"") - # Test that BP #1 wasn't set + # Test that BP #1 and #2 weren't set by running to program exit self.runCmd("-exec-continue") self.expect("\^running") self.expect("\*stopped,reason=\"exited-normally\"") |

