diff options
| author | Caroline Tice <ctice@apple.com> | 2011-02-04 22:59:41 +0000 |
|---|---|---|
| committer | Caroline Tice <ctice@apple.com> | 2011-02-04 22:59:41 +0000 |
| commit | 79042b3e93c5eabbaccfec4af3c3bbbe3667ea1e (patch) | |
| tree | 39fbdb66e6dcbbfbcc6d461f90cb6479cb4afbab /lldb/test/breakpoint_command/TestBreakpointCommand.py | |
| parent | 116a9d7c38b0a9c488a2ff85dacacb962a72b713 (diff) | |
| download | bcm5719-llvm-79042b3e93c5eabbaccfec4af3c3bbbe3667ea1e.tar.gz bcm5719-llvm-79042b3e93c5eabbaccfec4af3c3bbbe3667ea1e.zip | |
Change "breakpoint list" command to default to brief output rather than full output.
Modify test cases in test suite to either expect brief output or to pass -f for full
output as appropriate.
llvm-svn: 124905
Diffstat (limited to 'lldb/test/breakpoint_command/TestBreakpointCommand.py')
| -rw-r--r-- | lldb/test/breakpoint_command/TestBreakpointCommand.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lldb/test/breakpoint_command/TestBreakpointCommand.py b/lldb/test/breakpoint_command/TestBreakpointCommand.py index d4aba4137e5..73e46b78adc 100644 --- a/lldb/test/breakpoint_command/TestBreakpointCommand.py +++ b/lldb/test/breakpoint_command/TestBreakpointCommand.py @@ -59,6 +59,10 @@ class BreakpointCommandTestCase(TestBase): # The breakpoint list now only contains breakpoint 1. self.expect("breakpoint list", "Breakpoints 1 & 2 created", substrs = ["1: file ='main.c', line = %d, locations = 1" % self.line, + "2: file ='main.c', line = %d, locations = 1" % self.line] ) + + self.expect("breakpoint list -f", "Breakpoints 1 & 2 created", + substrs = ["1: file ='main.c', line = %d, locations = 1" % self.line, "2: file ='main.c', line = %d, locations = 1" % self.line], patterns = ["1.1: .+at main.c:%d, .+unresolved, hit count = 0" % self.line, "2.1: .+at main.c:%d, .+unresolved, hit count = 0" % self.line]) @@ -105,13 +109,13 @@ class BreakpointCommandTestCase(TestBase): startstr = "error: '2' is not a currently valid breakpoint id.") # The breakpoint list now only contains breakpoint 1. - self.expect("breakpoint list", "Breakpoint 1 exists", + self.expect("breakpoint list -f", "Breakpoint 1 exists", substrs = ["1: file ='main.c', line = %d, locations = 1, resolved = 1" % self.line, "hit count = 1"]) # Not breakpoint 2. - self.expect("breakpoint list", "No more breakpoint 2", matching=False, + self.expect("breakpoint list -f", "No more breakpoint 2", matching=False, substrs = ["2: file ='main.c', line = %d, locations = 1, resolved = 1" % self.line]) @@ -126,7 +130,7 @@ class BreakpointCommandTestCase(TestBase): 'stop reason = breakpoint']) # The breakpoint should have a hit count of 2. - self.expect("breakpoint list", BREAKPOINT_HIT_TWICE, + self.expect("breakpoint list -f", BREAKPOINT_HIT_TWICE, substrs = ['resolved, hit count = 2']) def breakpoint_command_script_parameters (self): |

