Don't check the value of the unset variables on iOS

llvm-svn: 276033
This commit is contained in:
Enrico Granata 2016-07-19 21:50:39 +00:00
parent 22a0f1a0b9
commit b5ab08bdb1
1 changed files with 5 additions and 6 deletions

View File

@ -52,13 +52,14 @@ class DataFormatterBoolRefPtr(TestBase):
# Execute the cleanup function during test case tear down. # Execute the cleanup function during test case tear down.
self.addTearDownHook(cleanup) self.addTearDownHook(cleanup)
isiOS = (lldbplatformutil.getPlatform() == 'ios')
# Now check that we use the right summary for BOOL& # Now check that we use the right summary for BOOL&
self.expect('frame variable yes_ref', self.expect('frame variable yes_ref',
substrs = ['YES']) substrs = ['YES'])
self.expect('frame variable no_ref', self.expect('frame variable no_ref',
substrs = ['NO']) substrs = ['NO'])
self.expect('frame variable unset_ref', if not(isiOS): self.expect('frame variable unset_ref', substrs = ['12'])
substrs = ['12'])
# Now check that we use the right summary for BOOL* # Now check that we use the right summary for BOOL*
@ -66,8 +67,7 @@ class DataFormatterBoolRefPtr(TestBase):
substrs = ['YES']) substrs = ['YES'])
self.expect('frame variable no_ptr', self.expect('frame variable no_ptr',
substrs = ['NO']) substrs = ['NO'])
self.expect('frame variable unset_ptr', if not(isiOS): self.expect('frame variable unset_ptr', substrs = ['12'])
substrs = ['12'])
# Now check that we use the right summary for BOOL # Now check that we use the right summary for BOOL
@ -75,5 +75,4 @@ class DataFormatterBoolRefPtr(TestBase):
substrs = ['YES']) substrs = ['YES'])
self.expect('frame variable no', self.expect('frame variable no',
substrs = ['NO']) substrs = ['NO'])
self.expect('frame variable unset', if not(isiOS): self.expect('frame variable unset', substrs = ['12'])
substrs = ['12'])