[Lldb-commits] [lldb] f899445 - [lldb] Fix TestFormattersBoolRefPtr on AS

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 11 14:55:44 PDT 2021


Author: Jonas Devlieghere
Date: 2021-08-11T14:55:39-07:00
New Revision: f89944530726f7b315b30670a7e1f93d0cd926f0

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

LOG: [lldb] Fix TestFormattersBoolRefPtr on AS

BOOL is bool instead of signed char on ARM. See
https://reviews.llvm.org/D93421#inline-874116 for details.

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 815a8ab903c07..95b3b5ce24dc5 100644
--- a/lldb/test/API/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py
+++ b/lldb/test/API/functionalities/data-formatter/boolreference/TestFormattersBoolRefPtr.py
@@ -76,11 +76,14 @@ def cleanup():
         if not(isArm):
             self.expect('frame variable unset', substrs=['12'])
 
+        # BOOL is bool instead of signed char on ARM.
+        converted_YES = "-1" if not isArm else "YES"
+
         self.expect_expr('myField', result_type="BoolBitFields",
                  result_children=[
                      ValueCheck(name="fieldOne", summary="NO"),
-                     ValueCheck(name="fieldTwo", summary="-1"),
+                     ValueCheck(name="fieldTwo", summary=converted_YES),
                      ValueCheck(name="fieldThree", summary="NO"),
                      ValueCheck(name="fieldFour", summary="NO"),
-                     ValueCheck(name="fieldFive", summary="-1")
+                     ValueCheck(name="fieldFive", summary=converted_YES)
                  ])


        


More information about the lldb-commits mailing list