[Lldb-commits] [lldb] r117569 - /lldb/trunk/test/lldbtest.py

Johnny Chen johnny.chen at apple.com
Thu Oct 28 11:24:22 PDT 2010


Author: johnny
Date: Thu Oct 28 13:24:22 2010
New Revision: 117569

URL: http://llvm.org/viewvc/llvm-project?rev=117569&view=rev
Log:
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

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=117569&r1=117568&r2=117569&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Thu Oct 28 13:24:22 2010
@@ -646,7 +646,7 @@
 
         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()





More information about the lldb-commits mailing list