aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2023-09-19 08:09:19 +0000
committerDavid Spickett <david.spickett@linaro.org>2023-09-19 08:28:34 +0000
commit956860168b56f135b9facf3827ae9f3634d41f40 (patch)
treeee223995aa930a3d8563ee90c92c46330b16c799 /lldb/test/API/python_api
parent59c3dcafd8f89d9fa31e3d2e0db5157f29459b31 (diff)
downloadllvm-956860168b56f135b9facf3827ae9f3634d41f40.zip
llvm-956860168b56f135b9facf3827ae9f3634d41f40.tar.gz
llvm-956860168b56f135b9facf3827ae9f3634d41f40.tar.bz2
[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.
Diffstat (limited to 'lldb/test/API/python_api')
-rw-r--r--lldb/test/API/python_api/value/TestValueAPI.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/test/API/python_api/value/TestValueAPI.py b/lldb/test/API/python_api/value/TestValueAPI.py
index 3855c67..7505267 100644
--- a/lldb/test/API/python_api/value/TestValueAPI.py
+++ b/lldb/test/API/python_api/value/TestValueAPI.py
@@ -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(