[Lldb-commits] [lldb] r115182 - /lldb/trunk/test/foundation/TestObjCMethods.py

Johnny Chen johnny.chen at apple.com
Thu Sep 30 11:02:47 PDT 2010


Author: johnny
Date: Thu Sep 30 13:02:47 2010
New Revision: 115182

URL: http://llvm.org/viewvc/llvm-project?rev=115182&view=rev
Log:
Test new feature with r115115:

Add "-o" option to "expression" which prints the object description if available.

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

Modified: lldb/trunk/test/foundation/TestObjCMethods.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/foundation/TestObjCMethods.py?rev=115182&r1=115181&r2=115182&view=diff
==============================================================================
--- lldb/trunk/test/foundation/TestObjCMethods.py (original)
+++ lldb/trunk/test/foundation/TestObjCMethods.py Thu Sep 30 13:02:47 2010
@@ -111,6 +111,12 @@
             substrs = ["ARG: (MyString *) self",
                        "ARG: (struct objc_selector *) _cmd"])
 
+        # Test new feature with r115115:
+        # Add "-o" option to "expression" which prints the object description if available.
+        self.expect("expr -o -- self", "Object description displayed correctly",
+            startstr = "Hello from ",
+            substrs = ["a.out", "with timestamp: "])
+
         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'")
 





More information about the lldb-commits mailing list