Adapt test to avoid short string types.

llvm-svn: 204295
This commit is contained in:
Jim Ingham 2014-03-20 02:21:17 +00:00
parent 7fadc0ea7d
commit 74287f4a12
1 changed files with 9 additions and 9 deletions

View File

@ -370,7 +370,7 @@ class ObjCDataFormatterTestCase(TestBase):
def nsstring_data_formatter_commands(self):
self.expect('frame variable str0 str1 str2 str3 str4 str5 str6 str8 str9 str10 str11 label1 label2 processName str12',
substrs = ['(NSString *) str1 = ',' @"A rather short ASCII NSString object is here"',
'(NSString *) str0 = ',' @"255"',
# '(NSString *) str0 = ',' @"255"',
'(NSString *) str1 = ',' @"A rather short ASCII NSString object is here"',
'(NSString *) str2 = ',' @"A rather short UTF8 NSString object is here"',
'(NSString *) str3 = ',' @"A string made with the at sign is here"',
@ -527,20 +527,20 @@ class ObjCDataFormatterTestCase(TestBase):
# check that the formatters are able to deal safely and correctly
# with ValueObjects that the expression parser returns
self.expect('expression ((id)@"Hello")', matching=False,
substrs = ['Hello'])
self.expect('expression ((id)@"Hello for long enough to avoid short string types")', matching=False,
substrs = ['Hello for long enough to avoid short string types'])
self.expect('expression -d run -- ((id)@"Hello")',
substrs = ['Hello'])
self.expect('expression -d run -- ((id)@"Hello for long enough to avoid short string types")',
substrs = ['Hello for long enough to avoid short string types'])
self.expect('expr -d run -- label1',
substrs = ['Process Name'])
self.expect('expr -d run -- @"Hello"',
substrs = ['Hello'])
self.expect('expr -d run -- @"Hello for long enough to avoid short string types"',
substrs = ['Hello for long enough to avoid short string types'])
self.expect('expr -d run --object-description -- @"Hello"',
substrs = ['Hello'])
self.expect('expr -d run --object-description -- @"Hello for long enough to avoid short string types"',
substrs = ['Hello for long enough to avoid short string types'])
self.expect('expr -d run --object-description -- @"Hello"', matching=False,
substrs = ['@"Hello" Hello'])