diff options
author | Siva Chandra <sivachandra@google.com> | 2015-05-27 22:27:41 +0000 |
---|---|---|
committer | Siva Chandra <sivachandra@google.com> | 2015-05-27 22:27:41 +0000 |
commit | 3154aa23f31f2f78f251b70f7a9b3dfb54a596cc (patch) | |
tree | 43e14f5d3b9cd5cc05e26f02f7f28f369713bda0 /lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py | |
parent | e7e1d0c706826a009698341e36f8c5a44ff1571c (diff) | |
download | bcm5719-llvm-3154aa23f31f2f78f251b70f7a9b3dfb54a596cc.tar.gz bcm5719-llvm-3154aa23f31f2f78f251b70f7a9b3dfb54a596cc.zip |
[TestBase.runCmd] Better error message when runCmd fails.
Summary:
Before:
AssertionError: False is not True : Process is launched successfully
After:
AssertionError: False is not True : Command 'run a.out' failed.
>>> error: invalid target, create a target using the 'target create' command
>>> Process could not be launched successfully
Reviewers: clayborg
Reviewed By: clayborg
Subscribers: lldb-commits, vharron
Differential Revision: http://reviews.llvm.org/D9948
llvm-svn: 238363
Diffstat (limited to 'lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py')
-rw-r--r-- | lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py b/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py index b1116595d4b..cffbff46af3 100644 --- a/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py +++ b/lldb/test/functionalities/breakpoint/breakpoint_command/TestBreakpointCommand.py @@ -111,7 +111,7 @@ class BreakpointCommandTestCase(TestBase): # Run the program. Remove 'output.txt' if it exists. self.RemoveTempFile("output.txt") self.RemoveTempFile("output2.txt") - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # Check that the file 'output.txt' exists and contains the string "lldb". @@ -161,7 +161,7 @@ class BreakpointCommandTestCase(TestBase): self.line]) # Run the program again, with breakpoint 1 remaining. - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # We should be stopped again due to breakpoint 1. @@ -191,7 +191,7 @@ class BreakpointCommandTestCase(TestBase): os.remove ('output-2.txt') # Run program, hit breakpoint, and hopefully write out new version of 'output-2.txt' - self.runCmd ("run", RUN_SUCCEEDED) + self.runCmd ("run", RUN_FAILED) # Check that the file 'output.txt' exists and contains the string "lldb". |