diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2010-09-30 22:11:33 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2010-09-30 22:11:33 +0000 |
| commit | c63bf9961c1893bc7d0aa9d6b76327ce1446be2e (patch) | |
| tree | 9914dd2b77d663ffa59adf831ddf6013352c2d34 /lldb/test/breakpoint_locations/TestBreakpointLocations.py | |
| parent | bb995ae261e15f2b9abc6b7a099dcee666605c33 (diff) | |
| download | bcm5719-llvm-c63bf9961c1893bc7d0aa9d6b76327ce1446be2e.tar.gz bcm5719-llvm-c63bf9961c1893bc7d0aa9d6b76327ce1446be2e.zip | |
Modification required to test clang, gcc, and llvm-gcc.
llvm-svn: 115216
Diffstat (limited to 'lldb/test/breakpoint_locations/TestBreakpointLocations.py')
| -rw-r--r-- | lldb/test/breakpoint_locations/TestBreakpointLocations.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lldb/test/breakpoint_locations/TestBreakpointLocations.py b/lldb/test/breakpoint_locations/TestBreakpointLocations.py index 6837ba6bcf5..f7195265f26 100644 --- a/lldb/test/breakpoint_locations/TestBreakpointLocations.py +++ b/lldb/test/breakpoint_locations/TestBreakpointLocations.py @@ -34,9 +34,8 @@ class BreakpointLocationsTestCase(TestBase): # The breakpoint list should show 3 locations. self.expect("breakpoint list", "Breakpoint locations shown correctly", substrs = ["1: file ='main.c', line = 19, locations = 3"], - patterns = ["1\.1: where = a.out`func_inlined .+unresolved, hit count = 0", - "1\.2: where = a.out`main .+\[inlined\].+unresolved, hit count = 0", - "1\.3: where = a.out`main .+\[inlined\].+unresolved, hit count = 0"]) + patterns = ["where = a.out`func_inlined .+unresolved, hit count = 0", + "where = a.out`main .+\[inlined\].+unresolved, hit count = 0"]) # The 'breakpoint disable 3.*' command should fail gracefully. self.expect("breakpoint disable 3.*", @@ -66,21 +65,22 @@ class BreakpointLocationsTestCase(TestBase): # Run the program againt. We should stop on the two breakpoint locations. self.runCmd("run", RUN_SUCCEEDED) - self.expect("thread backtrace", "Stopped on an inlined location", - substrs = ["stop reason = breakpoint 1.2"], - patterns = ["frame #0: .+\[inlined\]"]) + # Stopped once. + self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, + substrs = ["stop reason = breakpoint 1."]) + # Continue the program, there should be another stop. self.runCmd("process continue") - self.expect("thread backtrace", "Stopped on an inlined location", - substrs = ["stop reason = breakpoint 1.3"], - patterns = ["frame #0: .+\[inlined\]"]) + # Stopped again. + self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT, + substrs = ["stop reason = breakpoint 1."]) # At this point, the 3 locations should all have "hit count = 2". self.expect("breakpoint list", "Expect all 3 breakpoints with hit count of 2", - patterns = ["1\.1: where = a.out`func_inlined .+ resolved, hit count = 2 +Options: disabled", - "1\.2: where = a.out`main .+\[inlined\].+ resolved, hit count = 2", - "1\.3: where = a.out`main .+\[inlined\].+ resolved, hit count = 2"]) + patterns = ["1\.1: .+ resolved, hit count = 2 +Options: disabled", + "1\.2: .+ resolved, hit count = 2", + "1\.3: .+ resolved, hit count = 2"]) if __name__ == '__main__': |

