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/api/check_public_api_headers | |
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/api/check_public_api_headers')
-rw-r--r-- | lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py b/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py index 63e21ffb4f4..3f7c3aaef31 100644 --- a/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py +++ b/lldb/test/api/check_public_api_headers/TestPublicAPIHeaders.py @@ -79,7 +79,7 @@ class SBDirCheckerCase(TestBase): lldbutil.run_break_set_by_file_and_line (self, self.source, self.line_to_break, num_expected_locations = -1) - self.runCmd("run", RUN_SUCCEEDED) + self.runCmd("run", RUN_FAILED) # The stop reason of the thread should be breakpoint. self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, |