Made self.expect() errors a little more readable in the testsuite.
authorSean Callanan <scallanan@apple.com>
Tue, 8 Mar 2016 18:58:48 +0000 (18:58 +0000)
committerSean Callanan <scallanan@apple.com>
Tue, 8 Mar 2016 18:58:48 +0000 (18:58 +0000)
commitbbde9083ad0fa26e38a6d56598c6d877ecf234b2
tree6a974ac3d3102dc334e40a97260e90dfc0aa9b88
parent2d5e95c00d84856859f673539b608844cd8a69b2
Made self.expect() errors a little more readable in the testsuite.

self.expect() had two problems:

- If there was a substrs argument, then it overwrote the variable containing
  the command to run with the last substr.  That meant nonsense command text in
  testsuite errors.

- The actual output is not printed, which makes fixing testsuite failures a bit
  annoying (you end up having to use the -tv arguments to dotest).

This fixes both of these issues.  We could do even better, pretty-printing the
criteria for "correct" output, but this at least makes dealing with errors a bit
better.

llvm-svn: 262950
lldb/packages/Python/lldbsuite/test/lldbtest.py