[Lldb-commits] [lldb] r276033 - Don't check the value of the unset variables on iOS

Enrico Granata via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 19 14:50:39 PDT 2016


Author: enrico
Date: Tue Jul 19 16:50:39 2016
New Revision: 276033

URL: http://llvm.org/viewvc/llvm-project?rev=276033&view=rev
Log:
Don't check the value of the unset variables on iOS


Modified:
    lldb/trunk/packages/Python/lldbsuite/test/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py?rev=276033&r1=276032&r2=276033&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py Tue Jul 19 16:50:39 2016
@@ -52,13 +52,14 @@ class DataFormatterBoolRefPtr(TestBase):
         # Execute the cleanup function during test case tear down.
         self.addTearDownHook(cleanup)
 
+        isiOS = (lldbplatformutil.getPlatform() == 'ios')
+
         # Now check that we use the right summary for BOOL&
         self.expect('frame variable yes_ref',
                     substrs = ['YES'])
         self.expect('frame variable no_ref',
                     substrs = ['NO'])
-        self.expect('frame variable unset_ref',
-                    substrs = ['12'])
+        if not(isiOS): self.expect('frame variable unset_ref', substrs = ['12'])
 
 
         # Now check that we use the right summary for BOOL*
@@ -66,8 +67,7 @@ class DataFormatterBoolRefPtr(TestBase):
                     substrs = ['YES'])
         self.expect('frame variable no_ptr',
                     substrs = ['NO'])
-        self.expect('frame variable unset_ptr',
-                    substrs = ['12'])
+        if not(isiOS): self.expect('frame variable unset_ptr', substrs = ['12'])
 
 
         # Now check that we use the right summary for BOOL
@@ -75,5 +75,4 @@ class DataFormatterBoolRefPtr(TestBase):
                     substrs = ['YES'])
         self.expect('frame variable no',
                     substrs = ['NO'])
-        self.expect('frame variable unset',
-                    substrs = ['12'])
+        if not(isiOS): self.expect('frame variable unset', substrs = ['12'])




More information about the lldb-commits mailing list