[Lldb-commits] [lldb] r112000 - /lldb/trunk/test/lldbtest.py
Johnny Chen
johnny.chen at apple.com
Tue Aug 24 16:48:10 PDT 2010
Author: johnny
Date: Tue Aug 24 18:48:10 2010
New Revision: 112000
URL: http://llvm.org/viewvc/llvm-project?rev=112000&view=rev
Log:
More descriptive trace messages for the matchings of start and sub strings.
Modified:
lldb/trunk/test/lldbtest.py
Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=112000&r1=111999&r2=112000&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Tue Aug 24 18:48:10 2010
@@ -250,16 +250,21 @@
output = self.res.GetOutput()
matched = output.startswith(startstr) if startstr else True
- if not matched and startstr and trace:
- print >> sys.stderr, "Startstr not matched:", startstr
+ if startstr and trace:
+ print >> sys.stderr, "Expecting start string:", startstr
+ print >> sys.stderr, "Matched" if matched else "Not matched"
+ print >> sys.stderr
if substrs:
for str in substrs:
matched = output.find(str) > 0
+ if trace:
+ print >> sys.stderr, "Expecting sub string:", str
+ print >> sys.stderr, "Matched" if matched else "Not matched"
if not matched:
- if trace:
- print >> sys.stderr, "Substring not matched:", str
break
+ if trace:
+ print >> sys.stderr
self.assertTrue(matched, msg if msg else CMD_MSG(cmd))
More information about the lldb-commits
mailing list