summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/thread
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/functionalities/thread
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/functionalities/thread')
-rw-r--r--lldb/test/functionalities/thread/TestNumThreads.py2
-rw-r--r--lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py2
-rw-r--r--lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py2
-rw-r--r--lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py2
-rw-r--r--lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py2
-rw-r--r--lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py2
-rw-r--r--lldb/test/functionalities/thread/jump/TestThreadJump.py2
-rw-r--r--lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py2
-rw-r--r--lldb/test/functionalities/thread/state/TestThreadStates.py10
-rw-r--r--lldb/test/functionalities/thread/step_out/TestThreadStepOut.py2
-rw-r--r--lldb/test/functionalities/thread/thread_exit/TestThreadExit.py2
11 files changed, 15 insertions, 15 deletions
diff --git a/lldb/test/functionalities/thread/TestNumThreads.py b/lldb/test/functionalities/thread/TestNumThreads.py
index a7d015048a5..c308ec003bc 100644
--- a/lldb/test/functionalities/thread/TestNumThreads.py
+++ b/lldb/test/functionalities/thread/TestNumThreads.py
@@ -44,7 +44,7 @@ class NumberOfThreadsTestCase(TestBase):
substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.line])
# Run the program.
- self.runCmd("run", RUN_SUCCEEDED)
+ self.runCmd("run", RUN_FAILED)
# Stopped once.
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
diff --git a/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py b/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py
index c230c1aad7c..10000914dc8 100644
--- a/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py
+++ b/lldb/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py
@@ -48,7 +48,7 @@ class BreakpointAfterJoinTestCase(TestBase):
substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint])
# Run the program.
- 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/functionalities/thread/concurrent_events/TestConcurrentEvents.py b/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
index 6822cf0fb65..287a8422809 100644
--- a/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
+++ b/lldb/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
@@ -425,7 +425,7 @@ class ConcurrentEventsTestCase(TestBase):
self.expect("breakpoint list -f", "Breakpoint locations shown correctly", substrs = expected_bps)
# Run the program.
- self.runCmd("run", RUN_SUCCEEDED)
+ self.runCmd("run", RUN_FAILED)
# Check we are at line self.setup_breakpoint
self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT,
diff --git a/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py b/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py
index 1a50c0739ef..742a9c1ddc9 100644
--- a/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py
+++ b/lldb/test/functionalities/thread/create_during_step/TestCreateDuringStep.py
@@ -95,7 +95,7 @@ class CreateDuringStepTestCase(TestBase):
substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint])
# Run the program.
- 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/functionalities/thread/exit_during_break/TestExitDuringBreak.py b/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py
index 539e7a0dbd2..9f2265b289d 100644
--- a/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py
+++ b/lldb/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py
@@ -48,7 +48,7 @@ class ExitDuringBreakpointTestCase(TestBase):
substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint])
# Run the program.
- 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/functionalities/thread/exit_during_step/TestExitDuringStep.py b/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
index 1209c3788d9..135de10bca6 100644
--- a/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
+++ b/lldb/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
@@ -109,7 +109,7 @@ class ExitDuringStepTestCase(TestBase):
substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.breakpoint])
# Run the program.
- 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/functionalities/thread/jump/TestThreadJump.py b/lldb/test/functionalities/thread/jump/TestThreadJump.py
index d1c279fd7d2..605d692da33 100644
--- a/lldb/test/functionalities/thread/jump/TestThreadJump.py
+++ b/lldb/test/functionalities/thread/jump/TestThreadJump.py
@@ -46,7 +46,7 @@ class ThreadJumpTestCase(TestBase):
self.mark5 = line_number('other.cpp', '// other marker')
lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.mark3, num_expected_locations=1)
- self.runCmd("run", RUN_SUCCEEDED)
+ self.runCmd("run", RUN_FAILED)
# The stop reason of the thread should be breakpoint 1.
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT + " 1",
diff --git a/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py b/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py
index b0358e6b457..a54aa7993bd 100644
--- a/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py
+++ b/lldb/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py
@@ -48,7 +48,7 @@ class MultipleBreakpointTestCase(TestBase):
substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint])
# Run the program.
- self.runCmd("run", RUN_SUCCEEDED)
+ self.runCmd("run", RUN_FAILED)
# The stop reason of the thread should be breakpoint.
# The breakpoint may be hit in either thread 2 or thread 3.
diff --git a/lldb/test/functionalities/thread/state/TestThreadStates.py b/lldb/test/functionalities/thread/state/TestThreadStates.py
index 87be542e108..a08028f6c97 100644
--- a/lldb/test/functionalities/thread/state/TestThreadStates.py
+++ b/lldb/test/functionalities/thread/state/TestThreadStates.py
@@ -105,7 +105,7 @@ class ThreadStateTestCase(TestBase):
substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1])
# Run the program.
- 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,
@@ -146,7 +146,7 @@ class ThreadStateTestCase(TestBase):
substrs = ["1: file = 'main.c', line = %d, exact_match = 0, locations = 1" % self.break_1])
# Run the program.
- 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,
@@ -195,7 +195,7 @@ class ThreadStateTestCase(TestBase):
substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1])
# Run the program.
- 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,
@@ -239,7 +239,7 @@ class ThreadStateTestCase(TestBase):
substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.break_1])
# Run the program.
- 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,
@@ -294,7 +294,7 @@ class ThreadStateTestCase(TestBase):
"2: file = 'main.c', line = %d, locations = 1" % self.break_2])
# Run the program.
- 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/functionalities/thread/step_out/TestThreadStepOut.py b/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py
index 84d17c81cf2..ef6a718ebe2 100644
--- a/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py
+++ b/lldb/test/functionalities/thread/step_out/TestThreadStepOut.py
@@ -113,7 +113,7 @@ class ThreadStepOutTestCase(TestBase):
substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.breakpoint])
# Run the program.
- self.runCmd("run", RUN_SUCCEEDED)
+ self.runCmd("run", RUN_FAILED)
# Get the target process
self.inferior_target = self.dbg.GetSelectedTarget()
diff --git a/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py b/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py
index 7b8ed18512b..b21418f9fd3 100644
--- a/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py
+++ b/lldb/test/functionalities/thread/thread_exit/TestThreadExit.py
@@ -56,7 +56,7 @@ class ThreadExitTestCase(TestBase):
"4: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.break_4])
# Run the program.
- self.runCmd("run", RUN_SUCCEEDED)
+ self.runCmd("run", RUN_FAILED)
# The stop reason of the thread should be breakpoint 1.
self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT + " 1",
OpenPOWER on IntegriCloud