diff options
author | Johnny Chen <johnny.chen@apple.com> | 2010-10-28 18:24:22 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2010-10-28 18:24:22 +0000 |
commit | ebfff955b680cb0a08cc9f7ea453b6cacf25ffdf (patch) | |
tree | 9de149aad9a1d96bcc3b89bd9b04ac573db527c3 | |
parent | fb8b7098a11cea50c63c9b190541cc624cc211c6 (diff) | |
download | bcm5719-llvm-ebfff955b680cb0a08cc9f7ea453b6cacf25ffdf.tar.gz bcm5719-llvm-ebfff955b680cb0a08cc9f7ea453b6cacf25ffdf.zip |
If TestBase.expect() is passed an assert message, pass it along when delegating to TestBase.runCmd()
to execute the debugger command. This will result in a more semantic assert message than just the
command failed message like before:
AssertionError: False is not True : Command 'thread list' returns successfully
And now, we will have:
AssertionError: False is not True : Process state is stopped due to breakpoint
llvm-svn: 117569
-rw-r--r-- | lldb/test/lldbtest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/lldbtest.py b/lldb/test/lldbtest.py index 7acd2c733ed..9b15f1bbf86 100644 --- a/lldb/test/lldbtest.py +++ b/lldb/test/lldbtest.py @@ -646,7 +646,7 @@ class TestBase(unittest2.TestCase): if exe: # First run the command. If we are expecting error, set check=False. - self.runCmd(str, trace = (True if trace else False), check = not error) + self.runCmd(str, msg=msg, trace = (True if trace else False), check = not error) # Then compare the output against expected strings. output = self.res.GetError() if error else self.res.GetOutput() |