forked from OSchip/llvm-project
[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:
parent
9396c3ec7b
commit
f899445307
|
@ -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)
|
||||
])
|
||||
|
|
Loading…
Reference in New Issue