Skip to content

Commit 9568601

Browse files
committed
[lldb] Correct expected output for variable on 32 bit platforms
710276a added settings to control leading zeros but the initial test case assumed a 64 bit target.
1 parent 59c3dca commit 9568601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/test/API/python_api/value/TestValueAPI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def test(self):
210210
# Check that hex value printing works as expected.
211211
self.assertEqual(
212212
frame0.FindVariable("fixed_int_ptr").GetValue(),
213-
"0x00000000000000aa",
213+
"0x000000aa" if target.addr_size == 4 else "0x00000000000000aa",
214214
)
215215
self.runCmd("settings set target.show-hex-variable-values-with-leading-zeroes false")
216216
self.assertEqual(

0 commit comments

Comments
 (0)