[Lldb-commits] [lldb] r115918 - /lldb/trunk/test/array_types/TestArrayTypes.py
Johnny Chen
johnny.chen at apple.com
Thu Oct 7 09:23:37 PDT 2010
Author: johnny
Date: Thu Oct 7 11:23:37 2010
New Revision: 115918
URL: http://llvm.org/viewvc/llvm-project?rev=115918&view=rev
Log:
Updated expected match strings because the print representations of SBProcess, SBThread, SBBreakpoint, and SBFrame have changed.
Modified:
lldb/trunk/test/array_types/TestArrayTypes.py
Modified: lldb/trunk/test/array_types/TestArrayTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/array_types/TestArrayTypes.py?rev=115918&r1=115917&r2=115918&view=diff
==============================================================================
--- lldb/trunk/test/array_types/TestArrayTypes.py (original)
+++ lldb/trunk/test/array_types/TestArrayTypes.py Thu Oct 7 11:23:37 2010
@@ -109,8 +109,8 @@
# Sanity check the print representation of process.
proc = repr(self.process)
self.expect(proc, msg="Process looks good", exe=False,
- substrs = ["state: Stopped",
- "executable: a.out"])
+ substrs = ["state = Stopped",
+ "executable = a.out"])
# The stop reason of the thread should be breakpoint.
thread = self.process.GetThreadAtIndex(0)
@@ -120,9 +120,7 @@
# Sanity check the print representation of thread.
thr = repr(thread)
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 ""])
+ substrs = ["tid = 0x%4.4x" % thread.GetThreadID()])
# The breakpoint should have a hit count of 1.
self.assertTrue(breakpoint.GetHitCount() == 1, BREAKPOINT_HIT_ONCE)
@@ -132,15 +130,15 @@
self.expect(bp, "Breakpoint looks good and is resolved", exe=False,
substrs = ["file ='main.c'",
"line = 42",
- "locations = 1",
- "resolved = 1"])
+ "locations = 1"])
# Sanity check the print representation of frame.
frame = thread.GetFrameAtIndex(0)
frm = repr(frame)
- self.expect(frm, "Thread looks good with correct frame function", exe=False,
- substrs = ["frame #%d" % frame.GetFrameID(),
- "a.out`%s" % frame.GetFunction().GetName()])
+ self.expect(frm,
+ "Frame looks good with correct index %d" % frame.GetFrameID(),
+ exe=False,
+ substrs = ["idx = %d" % frame.GetFrameID()])
# Lookup the "strings" string array variable and sanity check its print
# representation.
More information about the lldb-commits
mailing list