[Lldb-commits] [lldb] r121077 - /lldb/trunk/test/foundation/TestObjCMethods2.py
Johnny Chen
johnny.chen at apple.com
Mon Dec 6 16:31:29 PST 2010
Author: johnny
Date: Mon Dec 6 18:31:29 2010
New Revision: 121077
URL: http://llvm.org/viewvc/llvm-project?rev=121077&view=rev
Log:
Add expect matching patterns for some self.expect() statements.
Modified:
lldb/trunk/test/foundation/TestObjCMethods2.py
Modified: lldb/trunk/test/foundation/TestObjCMethods2.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/foundation/TestObjCMethods2.py?rev=121077&r1=121076&r2=121077&view=diff
==============================================================================
--- lldb/trunk/test/foundation/TestObjCMethods2.py (original)
+++ lldb/trunk/test/foundation/TestObjCMethods2.py Mon Dec 6 18:31:29 2010
@@ -105,10 +105,14 @@
# Test_NSArray:
self.runCmd("thread backtrace")
- self.expect("expression [array1 count]")
- self.expect("expression array1.count")
- self.expect("expression [array2 count]")
- self.expect("expression array2.count")
+ self.expect("expression (int)[array1 count]",
+ patterns = ["\(int\) \$.* = 3"])
+ self.expect("expression (int)[array2 count]",
+ patterns = ["\(int\) \$.* = 3"])
+ self.expect("expression (int)array1.count",
+ patterns = ["\(int\) \$.* = 3"])
+ self.expect("expression (int)array2.count",
+ patterns = ["\(int\) \$.* = 3"])
self.runCmd("process continue")
@unittest2.expectedFailure
@@ -127,8 +131,10 @@
# Test_NSString:
self.runCmd("thread backtrace")
- self.expect("expression [str length]")
- self.expect("expression [id length]")
+ self.expect("expression (int)[str length]",
+ patterns = ["\(int\) \$.* ="])
+ self.expect("expression (int)[id length]",
+ patterns = ["\(int\) \$.* ="])
self.expect("expression [str description]")
self.expect("expression [id description]")
self.expect("expression str.description")
More information about the lldb-commits
mailing list