[Lldb-commits] [lldb] r123454 - in /lldb/trunk/test/foundation: TestObjCMethods2.py main.m
Johnny Chen
johnny.chen at apple.com
Fri Jan 14 11:19:30 PST 2011
Author: johnny
Date: Fri Jan 14 13:19:30 2011
New Revision: 123454
URL: http://llvm.org/viewvc/llvm-project?rev=123454&view=rev
Log:
Add an expression command:
expression (int)[nil_mutable_array count]
within NSArray_expr() function and expect a return of 0.
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=123454&r1=123453&r2=123454&view=diff
==============================================================================
--- lldb/trunk/test/foundation/TestObjCMethods2.py (original)
+++ lldb/trunk/test/foundation/TestObjCMethods2.py Fri Jan 14 13:19:30 2011
@@ -106,6 +106,8 @@
# Test_NSArray:
self.runCmd("thread backtrace")
+ self.expect("expression (int)[nil_mutable_array count]",
+ patterns = ["\(int\) \$.* = 0"])
self.expect("expression (int)[array1 count]",
patterns = ["\(int\) \$.* = 3"])
self.expect("expression (int)[array2 count]",
Modified: lldb/trunk/test/foundation/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/foundation/main.m?rev=123454&r1=123453&r2=123454&view=diff
==============================================================================
--- lldb/trunk/test/foundation/main.m (original)
+++ lldb/trunk/test/foundation/main.m Fri Jan 14 13:19:30 2011
@@ -102,11 +102,11 @@
NSArray *array1 = [NSArray arrayWithObjects: @"array1 object1", @"array1 object2", @"array1 object3", nil];
NSArray *array2 = [NSArray arrayWithObjects: array1, @"array2 object2", @"array2 object3", nil];
// Expressions to test here for NSArray:
+ // expression [nil_mutable_array count]
// expression [array1 count]
// expression array1.count
// expression [array2 count]
// expression array2.count
- // expression [nil_mutable_array count]
id obj;
// After each object at index call, use expression and validate object
obj = [array1 objectAtIndex: 0];
More information about the lldb-commits
mailing list