diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2010-08-24 23:48:10 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2010-08-24 23:48:10 +0000 |
| commit | c7c9fcfbd600f9d6df3b3bb8c726ed2e80e14036 (patch) | |
| tree | c19c115b1133c37a486bb7dfd7e1004227455ea9 | |
| parent | 3669c80de93aab2d9344a10bf3cfe7ae6fbdb04d (diff) | |
| download | bcm5719-llvm-c7c9fcfbd600f9d6df3b3bb8c726ed2e80e14036.tar.gz bcm5719-llvm-c7c9fcfbd600f9d6df3b3bb8c726ed2e80e14036.zip | |
More descriptive trace messages for the matchings of start and sub strings.
llvm-svn: 112000
| -rw-r--r-- | lldb/test/lldbtest.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 1ea941c8a47..b9e211e4237 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -250,16 +250,21 @@ class TestBase(unittest2.TestCase): 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)) |

