[lldb] Fix TestFormattersBoolRefPtr on AS

BOOL is bool instead of signed char on ARM. See
https://reviews.llvm.org/D93421#inline-874116 for details.
This commit is contained in:
Jonas Devlieghere 2021-08-11 14:54:32 -07:00
parent 9396c3ec7b
commit f899445307
1 changed files with 5 additions and 2 deletions

View File

@ -76,11 +76,14 @@ class DataFormatterBoolRefPtr(TestBase):
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)
])