[Lldb-commits] [lldb] 9568601 - [lldb] Correct expected output for variable on 32 bit platforms
David Spickett via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 19 01:28:53 PDT 2023
Author: David Spickett
Date: 2023-09-19T08:28:34Z
New Revision: 956860168b56f135b9facf3827ae9f3634d41f40
URL: https://github.com/llvm/llvm-project/commit/956860168b56f135b9facf3827ae9f3634d41f40
DIFF: https://github.com/llvm/llvm-project/commit/956860168b56f135b9facf3827ae9f3634d41f40.diff
LOG: [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.
Added:
Modified:
lldb/test/API/python_api/value/TestValueAPI.py
Removed:
################################################################################
diff --git a/lldb/test/API/python_api/value/TestValueAPI.py b/lldb/test/API/python_api/value/TestValueAPI.py
index 3855c67c8d37257..75052671d8d26c3 100644
--- a/lldb/test/API/python_api/value/TestValueAPI.py
+++ b/lldb/test/API/python_api/value/TestValueAPI.py
@@ -210,7 +210,7 @@ def test(self):
# 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(
More information about the lldb-commits
mailing list