summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api
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/python_api
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/python_api')
-rw-r--r--lldb/test/python_api/formatters/TestFormattersSBAPI.py4
-rw-r--r--lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py2
-rw-r--r--lldb/test/python_api/sbdata/TestSBData.py2
-rw-r--r--lldb/test/python_api/sbvalue_persist/TestSBValuePersist.py2
-rw-r--r--lldb/test/python_api/value_var_update/TestValueVarUpdate.py2
5 files changed, 6 insertions, 6 deletions
diff --git a/lldb/test/python_api/formatters/TestFormattersSBAPI.py b/lldb/test/python_api/formatters/TestFormattersSBAPI.py
index c8604735f62..1714691cea4 100644
--- a/lldb/test/python_api/formatters/TestFormattersSBAPI.py
+++ b/lldb/test/python_api/formatters/TestFormattersSBAPI.py
@@ -45,7 +45,7 @@ class SBFormattersAPITestCase(TestBase):
lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.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,
@@ -304,7 +304,7 @@ class SBFormattersAPITestCase(TestBase):
lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.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,
diff --git a/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py b/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py
index 49057851c96..1790a45a0cb 100644
--- a/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py
+++ b/lldb/test/python_api/rdar-12481949/Test-rdar-12481949.py
@@ -38,7 +38,7 @@ class Radar12481949DataFormatterTestCase(TestBase):
lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.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,
diff --git a/lldb/test/python_api/sbdata/TestSBData.py b/lldb/test/python_api/sbdata/TestSBData.py
index 4429da5cdd5..db4c63df6bc 100644
--- a/lldb/test/python_api/sbdata/TestSBData.py
+++ b/lldb/test/python_api/sbdata/TestSBData.py
@@ -51,7 +51,7 @@ class SBDataAPICase(TestBase):
lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.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,
diff --git a/lldb/test/python_api/sbvalue_persist/TestSBValuePersist.py b/lldb/test/python_api/sbvalue_persist/TestSBValuePersist.py
index 407d417133c..4d976ce32c1 100644
--- a/lldb/test/python_api/sbvalue_persist/TestSBValuePersist.py
+++ b/lldb/test/python_api/sbvalue_persist/TestSBValuePersist.py
@@ -37,7 +37,7 @@ class SBValuePersistTestCase(TestBase):
lldbutil.run_break_set_by_source_regexp (self, "break here")
- 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,
diff --git a/lldb/test/python_api/value_var_update/TestValueVarUpdate.py b/lldb/test/python_api/value_var_update/TestValueVarUpdate.py
index f3aa296ed6d..6b550c9407f 100644
--- a/lldb/test/python_api/value_var_update/TestValueVarUpdate.py
+++ b/lldb/test/python_api/value_var_update/TestValueVarUpdate.py
@@ -42,7 +42,7 @@ class HelloWorldTestCase(TestBase):
breakpoint = target.BreakpointCreateBySourceRegex("break here", lldb.SBFileSpec("main.c"))
- 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,
OpenPOWER on IntegriCloud