summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-12-07 00:31:29 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-12-07 00:31:29 +0000
commit50ca1a43283fa860b67e34b3f0d6572af5343a6f (patch)
treebcde16a473f2ed52cd76e2d91ba889cf01421512
parent93e3cf0ebd9c95a8df42fff0aa38fc022422b4d4 (diff)
downloadbcm5719-llvm-50ca1a43283fa860b67e34b3f0d6572af5343a6f.tar.gz
bcm5719-llvm-50ca1a43283fa860b67e34b3f0d6572af5343a6f.zip
Add expect matching patterns for some self.expect() statements.
llvm-svn: 121077
-rw-r--r--lldb/test/foundation/TestObjCMethods2.py18
1 files changed, 12 insertions, 6 deletions
diff --git a/lldb/test/foundation/TestObjCMethods2.py b/lldb/test/foundation/TestObjCMethods2.py
index 69d34471779..f2335c6b6c2 100644
--- a/lldb/test/foundation/TestObjCMethods2.py
+++ b/lldb/test/foundation/TestObjCMethods2.py
@@ -105,10 +105,14 @@ class FoundationTestCase2(TestBase):
# 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 @@ class FoundationTestCase2(TestBase):
# 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")
OpenPOWER on IntegriCloud