forked from OSchip/llvm-project
Add expect matching patterns for some self.expect() statements.
llvm-svn: 121077
This commit is contained in:
parent
93e3cf0ebd
commit
50ca1a4328
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue