[Lldb-commits] [lldb] r125400 - /lldb/trunk/test/foundation/TestConstStrings.py
Johnny Chen
johnny.chen at apple.com
Fri Feb 11 12:11:06 PST 2011
Author: johnny
Date: Fri Feb 11 14:11:06 2011
New Revision: 125400
URL: http://llvm.org/viewvc/llvm-project?rev=125400&view=rev
Log:
Instead of self.runCmd(), do a stronger self.expect("process status") which also
checks that the process is stopped due to breakpoint at the specified line no.
Modified:
lldb/trunk/test/foundation/TestConstStrings.py
Modified: lldb/trunk/test/foundation/TestConstStrings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/foundation/TestConstStrings.py?rev=125400&r1=125399&r2=125400&view=diff
==============================================================================
--- lldb/trunk/test/foundation/TestConstStrings.py (original)
+++ lldb/trunk/test/foundation/TestConstStrings.py Fri Feb 11 14:11:06 2011
@@ -42,7 +42,9 @@
(self.main_source, self.line))
self.runCmd("run", RUN_SUCCEEDED)
- self.runCmd("process status")
+ self.expect("process status", STOPPED_DUE_TO_BREAKPOINT,
+ substrs = [" at %s:%d" % (self.main_source, self.line),
+ "stop reason = breakpoint"])
self.expect('expression (int)[str compare:@"hello"]',
startstr = "(int) $0 = 0")
More information about the lldb-commits
mailing list