summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/breakpoint_conditions/TestBreakpointConditions.py4
-rw-r--r--lldb/test/lldbtest.py2
2 files changed, 6 insertions, 0 deletions
diff --git a/lldb/test/breakpoint_conditions/TestBreakpointConditions.py b/lldb/test/breakpoint_conditions/TestBreakpointConditions.py
index e1c9dcac9d6..757e0edae12 100644
--- a/lldb/test/breakpoint_conditions/TestBreakpointConditions.py
+++ b/lldb/test/breakpoint_conditions/TestBreakpointConditions.py
@@ -56,6 +56,10 @@ class BreakpointConditionsTestCase(TestBase):
# Now run the program.
self.runCmd("run", RUN_SUCCEEDED)
+ # The process should be stopped.
+ self.expect("process status", PROCESS_STOPPED,
+ patterns = ['Process .* stopped'])
+
# 'frame variable -t val' should return 3 due to breakpoint condition.
self.expect("frame variable -t val", VARIABLES_DISPLAYED_CORRECTLY,
startstr = '(int) val = 3')
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py
index ab87d48396e..639e348deb4 100644
--- a/lldb/test/lldbtest.py
+++ b/lldb/test/lldbtest.py
@@ -151,6 +151,8 @@ BREAKPOINT_HIT_THRICE = "Breakpoint resolved with hit cout = 3"
STEP_OUT_SUCCEEDED = "Thread step-out succeeded"
+PROCESS_STOPPED = "Process status should be stopped"
+
STOPPED_DUE_TO_BREAKPOINT = "Process should be stopped due to breakpoint"
STOPPED_DUE_TO_BREAKPOINT_WITH_STOP_REASON_AS = "%s, %s" % (
OpenPOWER on IntegriCloud