[Lldb-commits] [lldb] 33ece57 - Generalize TestFormattersBoolRefPtr to work on Apple Silicon.

Davide Italiano via lldb-commits lldb-commits at lists.llvm.org
Tue Jun 23 12:45:55 PDT 2020


Author: Davide Italiano
Date: 2020-06-23T12:45:31-07:00
New Revision: 33ece57241d8ad46cb91eca483f05515849a85e5

URL: https://github.com/llvm/llvm-project/commit/33ece57241d8ad46cb91eca483f05515849a85e5
DIFF: https://github.com/llvm/llvm-project/commit/33ece57241d8ad46cb91eca483f05515849a85e5.diff

LOG: Generalize TestFormattersBoolRefPtr to work on Apple Silicon.

Added: 
    

Modified: 
    lldb/test/API/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py b/lldb/test/API/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py
index 25ecdef5948c..7435409939e4 100644
--- a/lldb/test/API/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py
+++ b/lldb/test/API/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py
@@ -50,14 +50,14 @@ def cleanup():
         # Execute the cleanup function during test case tear down.
         self.addTearDownHook(cleanup)
 
-        isiOS = (lldbplatformutil.getPlatform() == 'ios' or lldbplatformutil.getPlatform() == 'watchos')
+        isArm = 'arm' in self.getArchitecture()
 
         # 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'])
-        if not(isiOS):
+        if not(isArm):
             self.expect('frame variable unset_ref', substrs=['12'])
 
         # Now check that we use the right summary for BOOL*
@@ -65,7 +65,7 @@ def cleanup():
                     substrs=['YES'])
         self.expect('frame variable no_ptr',
                     substrs=['NO'])
-        if not(isiOS):
+        if not(isArm):
             self.expect('frame variable unset_ptr', substrs=['12'])
 
         # Now check that we use the right summary for BOOL
@@ -73,5 +73,5 @@ def cleanup():
                     substrs=['YES'])
         self.expect('frame variable no',
                     substrs=['NO'])
-        if not(isiOS):
+        if not(isArm):
             self.expect('frame variable unset', substrs=['12'])


        


More information about the lldb-commits mailing list