[Lldb-commits] [lldb] r121268 - in /lldb/trunk/test/foundation: TestObjCMethods2.py main.m
Johnny Chen
johnny.chen at apple.com
Wed Dec 8 10:14:20 PST 2010
Author: johnny
Date: Wed Dec 8 12:14:20 2010
New Revision: 121268
URL: http://llvm.org/viewvc/llvm-project?rev=121268&view=rev
Log:
Modify the TestObjCMethods2.py test to fix a typo (should be str_id, not id).
Also, add bug info for expected failures that remain:
<rdar://problem/8741897> Expressions should support properties
Modified:
lldb/trunk/test/foundation/TestObjCMethods2.py
lldb/trunk/test/foundation/main.m
Modified: lldb/trunk/test/foundation/TestObjCMethods2.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/foundation/TestObjCMethods2.py?rev=121268&r1=121267&r2=121268&view=diff
==============================================================================
--- lldb/trunk/test/foundation/TestObjCMethods2.py (original)
+++ lldb/trunk/test/foundation/TestObjCMethods2.py Wed Dec 8 12:14:20 2010
@@ -90,6 +90,7 @@
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 @@
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 @@
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")
Modified: lldb/trunk/test/foundation/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/foundation/main.m?rev=121268&r1=121267&r2=121268&view=diff
==============================================================================
--- lldb/trunk/test/foundation/main.m (original)
+++ lldb/trunk/test/foundation/main.m Wed Dec 8 12:14:20 2010
@@ -72,9 +72,9 @@
// 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"
More information about the lldb-commits
mailing list