summaryrefslogtreecommitdiffstats
path: root/lldb/test/lang/objc/real-definition/TestRealDefinition.py
diff options
context:
space:
mode:
authorSiva Chandra <sivachandra@google.com>2015-05-27 22:27:41 +0000
committerSiva Chandra <sivachandra@google.com>2015-05-27 22:27:41 +0000
commit3154aa23f31f2f78f251b70f7a9b3dfb54a596cc (patch)
tree43e14f5d3b9cd5cc05e26f02f7f28f369713bda0 /lldb/test/lang/objc/real-definition/TestRealDefinition.py
parente7e1d0c706826a009698341e36f8c5a44ff1571c (diff)
downloadbcm5719-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/lang/objc/real-definition/TestRealDefinition.py')
-rw-r--r--lldb/test/lang/objc/real-definition/TestRealDefinition.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/test/lang/objc/real-definition/TestRealDefinition.py b/lldb/test/lang/objc/real-definition/TestRealDefinition.py
index 41f0b27db1d..cde2b9349c8 100644
--- a/lldb/test/lang/objc/real-definition/TestRealDefinition.py
+++ b/lldb/test/lang/objc/real-definition/TestRealDefinition.py
@@ -65,7 +65,7 @@ class TestRealDefinition(TestBase):
line = line_number('Foo.m', '// Set breakpoint where Bar is an interface')
lldbutil.run_break_set_by_file_and_line (self, 'Foo.m', line, num_expected_locations=1, loc_exact=True);
- 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,
@@ -76,7 +76,7 @@ class TestRealDefinition(TestBase):
self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
substrs = [' resolved, hit count = 1'])
- self.runCmd("continue", RUN_SUCCEEDED)
+ self.runCmd("continue", RUN_FAILED)
# Run at stop at main
self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
@@ -93,7 +93,7 @@ class TestRealDefinition(TestBase):
line = line_number('Bar.m', '// Set breakpoint where Bar is an implementation')
lldbutil.run_break_set_by_file_and_line (self, 'Bar.m', line, num_expected_locations=1, loc_exact=True)
- 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,
@@ -104,7 +104,7 @@ class TestRealDefinition(TestBase):
self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
substrs = [' resolved, hit count = 1'])
- self.runCmd("continue", RUN_SUCCEEDED)
+ self.runCmd("continue", RUN_FAILED)
# Run at stop at main
self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
OpenPOWER on IntegriCloud