summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/foundation/TestObjCMethods2.py12
-rw-r--r--lldb/test/foundation/main.m4
2 files changed, 10 insertions, 6 deletions
diff --git a/lldb/test/foundation/TestObjCMethods2.py b/lldb/test/foundation/TestObjCMethods2.py
index f2335c6b6c2..c5cf0d9f290 100644
--- a/lldb/test/foundation/TestObjCMethods2.py
+++ b/lldb/test/foundation/TestObjCMethods2.py
@@ -90,6 +90,7 @@ class FoundationTestCase2(TestBase):
self.runCmd("process continue")
@unittest2.expectedFailure
+ # <rdar://problem/8741897> Expressions should support properties
def NSArray_expr(self):
"""Test expression commands for NSArray."""
exe = os.path.join(os.getcwd(), "a.out")
@@ -116,6 +117,7 @@ class FoundationTestCase2(TestBase):
self.runCmd("process continue")
@unittest2.expectedFailure
+ # <rdar://problem/8741897> Expressions should support properties
def NSString_expr(self):
"""Test expression commands for NSString."""
exe = os.path.join(os.getcwd(), "a.out")
@@ -133,12 +135,14 @@ class FoundationTestCase2(TestBase):
self.runCmd("thread backtrace")
self.expect("expression (int)[str length]",
patterns = ["\(int\) \$.* ="])
- self.expect("expression (int)[id length]",
+ self.expect("expression (int)[str_id length]",
patterns = ["\(int\) \$.* ="])
- self.expect("expression [str description]")
- self.expect("expression [id description]")
+ self.expect("expression [str description]",
+ patterns = ["\(id\) \$.* = 0x"])
+ self.expect("expression [str_id description]",
+ patterns = ["\(id\) \$.* = 0x"])
self.expect("expression str.description")
- self.expect("expression id.description")
+ self.expect("expression str_id.description")
self.expect('expression str = @"new"')
self.expect('expression str = [NSString stringWithFormat: @"%cew", \'N\']')
self.runCmd("process continue")
diff --git a/lldb/test/foundation/main.m b/lldb/test/foundation/main.m
index fedb087ee55..477ad6a0ade 100644
--- a/lldb/test/foundation/main.m
+++ b/lldb/test/foundation/main.m
@@ -72,9 +72,9 @@ Test_NSString (const char *program)
// Expressions to test here for NSString:
// expression (char *)sel_getName(sel)
// expression [str length]
- // expression [id length]
+ // expression [str_id length]
// expression [str description]
- // expression [id description]
+ // expression [str_id description]
// expression str.length
// expression str.description
// expression str = @"new"
OpenPOWER on IntegriCloud