Modification of the expected substrings for the print representations of SBProcess and SBThread.

llvm-svn: 115804
This commit is contained in:
Johnny Chen 2010-10-06 18:16:19 +00:00
parent ec0da969fb
commit df2dc0f6f2
1 changed files with 3 additions and 4 deletions

View File

@ -103,8 +103,8 @@ class ArrayTypesTestCase(TestBase):
# Sanity check the print representation of process.
proc = repr(self.process)
self.expect(proc, msg="Process looks good", exe=False,
patterns = ["executable.+array_types.a\.out",
"instance name:.+state: Stopped"])
substrs = ["state: Stopped",
"executable: a.out"])
# The stop reason of the thread should be breakpoint.
thread = self.process.GetThreadAtIndex(0)
@ -116,8 +116,7 @@ class ArrayTypesTestCase(TestBase):
self.expect(thr, "Thread looks good with stop reason = breakpoint", exe=False,
substrs = ["thread #%d: tid = 0x%4.4x" % (thread.GetIndexID(), thread.GetThreadID()),
"stop reason = breakpoint",
"queue = %s" % thread.GetQueueName() if thread.GetQueueName() else "",
"%d frames" % thread.GetNumFrames()])
"queue = %s" % thread.GetQueueName() if thread.GetQueueName() else ""])
# The breakpoint should have a hit count of 1.
self.assertTrue(breakpoint.GetHitCount() == 1, BREAKPOINT_HIT_ONCE)