Add an expect() statement within breakpoint_conditions() method which tests that
the process status is indeed 'stopped' before invoking 'frame variable -t val'
command to inspect the frame variable. When I run the test suite, it sometimes
emits an output like:
runCmd: frame variable -t val
runCmd failed!
error: you must be stopped in a valid stack frame to view frame variables.
The expect() statement inserted is to make sure that the process is stopped and
we have a valid frame.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@120318 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/lldbtest.py b/test/lldbtest.py
index ab87d48..639e348 100644
--- a/test/lldbtest.py
+++ b/test/lldbtest.py
@@ -151,6 +151,8 @@
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" % (