[Lldb-commits] [lldb] r114232 - in /lldb/trunk/test: foundation/TestObjCMethods.py lldbtest.py

Johnny Chen johnny.chen at apple.com
Fri Sep 17 15:45:27 PDT 2010


Author: johnny
Date: Fri Sep 17 17:45:27 2010
New Revision: 114232

URL: http://llvm.org/viewvc/llvm-project?rev=114232&view=rev
Log:
Fixed a typo and supplied a more appropriate assert message.

Modified:
    lldb/trunk/test/foundation/TestObjCMethods.py
    lldb/trunk/test/lldbtest.py

Modified: lldb/trunk/test/foundation/TestObjCMethods.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/foundation/TestObjCMethods.py?rev=114232&r1=114231&r2=114232&view=diff
==============================================================================
--- lldb/trunk/test/foundation/TestObjCMethods.py (original)
+++ lldb/trunk/test/foundation/TestObjCMethods.py Fri Sep 17 17:45:27 2010
@@ -109,7 +109,7 @@
             substrs = ["ARG: (MyString *) self",
                        "ARG: (struct objc_selector *) _cmd"])
 
-        self.expect("expr self->non_existent_member", VARIABLES_DISPLAYED_CORRECTLY, error=True,
+        self.expect("expr self->non_existent_member", COMMAND_FAILED_AS_EXPECTED, error=True,
             startstr = "error: 'MyString' does not have a member named 'non_existent_member'")
 
         self.expect("frame variable self->str", VARIABLES_DISPLAYED_CORRECTLY,

Modified: lldb/trunk/test/lldbtest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lldbtest.py?rev=114232&r1=114231&r2=114232&view=diff
==============================================================================
--- lldb/trunk/test/lldbtest.py (original)
+++ lldb/trunk/test/lldbtest.py Fri Sep 17 17:45:27 2010
@@ -113,6 +113,8 @@
 # Some commonly used assert messages.
 #
 
+COMMAND_FAILED_AS_EXPECTED = "Command has failed as expected"
+
 CURRENT_EXECUTABLE_SET = "Current executable set successfully"
 
 PROCESS_IS_VALID = "Process is valid"
@@ -408,7 +410,7 @@
 
         If the keyword argument error is set to True, it signifies that the API
         client is expecting the command to fail.  In this case, the error stream
-        from running the command is retrieved and compared againt the golden
+        from running the command is retrieved and compared against the golden
         input, instead.
         """
         trace = (True if traceAlways else trace)





More information about the lldb-commits mailing list