[lldb] Correct expected output for variable on 32 bit platforms

710276a2505514634a7cc805461b1219dcef9337 added settings to control
leading zeros but the initial test case assumed a 64 bit target.
This commit is contained in:
David Spickett 2023-09-19 08:09:19 +00:00
parent 59c3dcafd8
commit 956860168b

View File

@ -210,7 +210,7 @@ class ValueAPITestCase(TestBase):
# Check that hex value printing works as expected.
self.assertEqual(
frame0.FindVariable("fixed_int_ptr").GetValue(),
"0x00000000000000aa",
"0x000000aa" if target.addr_size == 4 else "0x00000000000000aa",
)
self.runCmd("settings set target.show-hex-variable-values-with-leading-zeroes false")
self.assertEqual(