Author: Med Ismail Bennani Date: 2025-12-18T23:28:29+01:00 New Revision: 7a3eddc19f70b6965077eae7746fb6b509bf1cdd
URL: https://github.com/llvm/llvm-project/commit/7a3eddc19f70b6965077eae7746fb6b509bf1cdd DIFF: https://github.com/llvm/llvm-project/commit/7a3eddc19f70b6965077eae7746fb6b509bf1cdd.diff LOG: [lldb/test] Fix failure caused by leading zero in TestScriptedFrameProvider.py This should fix a test failure in TestScriptedFrameProvider.py: https://lab.llvm.org/buildbot/#/builders/18/builds/23398/steps/6/logs/stdio This is a happening because on 32bit system, addresses don't have the leading zeroes. This patch removes them to satisfy the checks. Signed-off-by: Med Ismail Bennani <[email protected]> Added: Modified: lldb/test/API/functionalities/scripted_frame_provider/TestScriptedFrameProvider.py Removed: ################################################################################ diff --git a/lldb/test/API/functionalities/scripted_frame_provider/TestScriptedFrameProvider.py b/lldb/test/API/functionalities/scripted_frame_provider/TestScriptedFrameProvider.py index e2b0f0f9cd50d..0a5b9d9b83951 100644 --- a/lldb/test/API/functionalities/scripted_frame_provider/TestScriptedFrameProvider.py +++ b/lldb/test/API/functionalities/scripted_frame_provider/TestScriptedFrameProvider.py @@ -624,15 +624,15 @@ def test_valid_pc_no_module_frames(self): self.assertIn("unknown_function_2", output) # Should show PC addresses in hex format. - self.assertIn("0x0000000001234000", output) - self.assertIn("0x0000000005678000", output) + self.assertIn("1234000", output) + self.assertIn("5678000", output) # Verify PC and function name are properly separated by space. - self.assertIn("0x0000000001234000 unknown_function_1", output) - self.assertIn("0x0000000005678000 unknown_function_2", output) + self.assertIn("1234000 unknown_function_1", output) + self.assertIn("5678000 unknown_function_2", output) # Should NOT show invalid address. - self.assertNotIn("0xffffffffffffffff", output.lower()) + self.assertNotIn("ffffff", output.lower()) # Verify frame 2 is the original real frame 0. frame2 = thread.GetFrameAtIndex(2) _______________________________________________ lldb-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits
