summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/foundation/TestObjCMethods.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/test/foundation/TestObjCMethods.py b/lldb/test/foundation/TestObjCMethods.py
index aa88ad1d0b4..860131da603 100644
--- a/lldb/test/foundation/TestObjCMethods.py
+++ b/lldb/test/foundation/TestObjCMethods.py
@@ -111,6 +111,12 @@ class FoundationTestCase(TestBase):
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'")
OpenPOWER on IntegriCloud