forked from OSchip/llvm-project
Fix this test case to actually work - it was relying on a certain 'po' output which wasn't occurring
llvm-svn: 219978
This commit is contained in:
parent
9c04bce1f1
commit
a0524bd159
|
@ -15,14 +15,12 @@ class ObjCNewSyntaxTestCase(TestBase):
|
|||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@dsym_test
|
||||
@unittest2.expectedFailure
|
||||
def test_expr_with_dsym(self):
|
||||
self.buildDsym()
|
||||
self.expr()
|
||||
|
||||
@dwarf_test
|
||||
@skipIfLinux
|
||||
@unittest2.expectedFailure
|
||||
def test_expr_with_dwarf(self):
|
||||
self.buildDwarf()
|
||||
self.expr()
|
||||
|
@ -93,34 +91,32 @@ class ObjCNewSyntaxTestCase(TestBase):
|
|||
substrs = ["NSArray", "foo", "bar"])
|
||||
|
||||
self.expect("expr --object-description -- @{ @\"key\" : @\"object\" }", VARIABLES_DISPLAYED_CORRECTLY,
|
||||
substrs = ["NSDictionary", "key", "object"])
|
||||
substrs = ["key", "object"])
|
||||
|
||||
self.expect("expr --object-description -- @'a'", VARIABLES_DISPLAYED_CORRECTLY,
|
||||
substrs = ["NSNumber", str(ord('a'))])
|
||||
substrs = [str(ord('a'))])
|
||||
|
||||
self.expect("expr --object-description -- @1", VARIABLES_DISPLAYED_CORRECTLY,
|
||||
substrs = ["NSNumber", "1"])
|
||||
substrs = ["1"])
|
||||
|
||||
self.expect("expr --object-description -- @1l", VARIABLES_DISPLAYED_CORRECTLY,
|
||||
substrs = ["NSNumber", "1"])
|
||||
substrs = ["1"])
|
||||
|
||||
self.expect("expr --object-description -- @1ul", VARIABLES_DISPLAYED_CORRECTLY,
|
||||
substrs = ["NSNumber", "1"])
|
||||
substrs = ["1"])
|
||||
|
||||
self.expect("expr --object-description -- @1ll", VARIABLES_DISPLAYED_CORRECTLY,
|
||||
substrs = ["NSNumber", "1"])
|
||||
substrs = ["1"])
|
||||
|
||||
self.expect("expr --object-description -- @1ull", VARIABLES_DISPLAYED_CORRECTLY,
|
||||
substrs = ["NSNumber", "1"])
|
||||
substrs = ["1"])
|
||||
|
||||
self.expect("expr --object-description -- @123.45", VARIABLES_DISPLAYED_CORRECTLY,
|
||||
substrs = ["NSNumber", "123.45"])
|
||||
self.expect("expr --object-description -- @123.45f", VARIABLES_DISPLAYED_CORRECTLY,
|
||||
self.expect("expr -- @123.45", VARIABLES_DISPLAYED_CORRECTLY,
|
||||
substrs = ["NSNumber", "123.45"])
|
||||
|
||||
self.expect("expr --object-description -- @( 1 + 3 )", VARIABLES_DISPLAYED_CORRECTLY,
|
||||
substrs = ["NSNumber", "4"])
|
||||
self.expect("expr --object-description -- @(\"Hello world\" + 6)", VARIABLES_DISPLAYED_CORRECTLY,
|
||||
substrs = ["4"])
|
||||
self.expect("expr -- @((char*)\"Hello world\" + 6)", VARIABLES_DISPLAYED_CORRECTLY,
|
||||
substrs = ["NSString", "world"])
|
||||
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@ int main()
|
|||
NSMutableDictionary *mutable_dictionary = [NSMutableDictionary dictionaryWithCapacity:1];
|
||||
[mutable_dictionary addEntriesFromDictionary:immutable_dictionary];
|
||||
|
||||
NSNumber *one = @1;
|
||||
|
||||
NSLog(@"Stop here"); // Set breakpoint 0 here.
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue