[Lldb-commits] [lldb] ea6d0c4 - One further tweak for realpathing filepath to match dyld
Jason Molenda via lldb-commits
lldb-commits at lists.llvm.org
Thu May 26 11:25:01 PDT 2022
Author: Jason Molenda
Date: 2022-05-26T11:24:56-07:00
New Revision: ea6d0c4b2a1ec9c12aa5513ddf574f3146cf9025
URL: https://github.com/llvm/llvm-project/commit/ea6d0c4b2a1ec9c12aa5513ddf574f3146cf9025
DIFF: https://github.com/llvm/llvm-project/commit/ea6d0c4b2a1ec9c12aa5513ddf574f3146cf9025.diff
LOG: One further tweak for realpathing filepath to match dyld
I missed one place I need to realpath the build artifact path,
to make it match the path we get back from dyld.
Added:
Modified:
lldb/test/API/commands/platform/sdk/TestPlatformSDK.py
Removed:
################################################################################
diff --git a/lldb/test/API/commands/platform/sdk/TestPlatformSDK.py b/lldb/test/API/commands/platform/sdk/TestPlatformSDK.py
index 9178e3cdac4f7..06c780dc6a5e3 100644
--- a/lldb/test/API/commands/platform/sdk/TestPlatformSDK.py
+++ b/lldb/test/API/commands/platform/sdk/TestPlatformSDK.py
@@ -85,7 +85,7 @@ def cleanup():
lldbutil.wait_for_file_on_target(self, token)
# Move the binary into the 'SDK'.
- rel_exe_path = os.path.relpath(exe, '/')
+ rel_exe_path = os.path.relpath(os.path.realpath(exe), '/')
exe_sdk_path = os.path.join(symbols_dir, rel_exe_path)
lldbutil.mkdir_p(os.path.dirname(exe_sdk_path))
shutil.move(exe, exe_sdk_path)
More information about the lldb-commits
mailing list