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.

llvm-svn: 125400
This commit is contained in:
Johnny Chen 2011-02-11 20:11:06 +00:00
parent de32b20bdd
commit 259326c821
1 changed files with 3 additions and 1 deletions

View File

@ -42,7 +42,9 @@ class ConstStringTestCase(TestBase):
(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")