[Lldb-commits] [lldb] af77e07 - [lldb][Windows] Compare real paths in TestReplaceDLL (#226177)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 24 07:40:03 PDT 2026
Author: Charles Zablit
Date: 2026-09-24T15:39:57+01:00
New Revision: af77e07eafa8ffda52ad620ef1cdb0188745ddca
URL: https://github.com/llvm/llvm-project/commit/af77e07eafa8ffda52ad620ef1cdb0188745ddca
DIFF: https://github.com/llvm/llvm-project/commit/af77e07eafa8ffda52ad620ef1cdb0188745ddca.diff
LOG: [lldb][Windows] Compare real paths in TestReplaceDLL (#226177)
lldb reports a module's canonical path, which differs from the build
artifact path when the build tree is reached through a subst drive
(`S:\...` vs `C:\S\...`). Compare real paths instead.
Fixes `windows/launch/replace-dll/TestReplaceDLL.py` in swiftlang CI
where we use subst drives.
Added:
Modified:
lldb/test/API/windows/launch/replace-dll/TestReplaceDLL.py
Removed:
################################################################################
diff --git a/lldb/test/API/windows/launch/replace-dll/TestReplaceDLL.py b/lldb/test/API/windows/launch/replace-dll/TestReplaceDLL.py
index 83250f1700666..14000a1cd137f 100644
--- a/lldb/test/API/windows/launch/replace-dll/TestReplaceDLL.py
+++ b/lldb/test/API/windows/launch/replace-dll/TestReplaceDLL.py
@@ -47,7 +47,9 @@ def test(self):
module = next((m for m in target.modules if "foo" in m.file.basename), None)
self.assertIsNotNone(module)
- self.assertEqual(module.file.fullpath, foo)
+ # lldb reports the canonical path, which
diff ers from the build
+ # artifact path when the build tree is reached through a subst drive.
+ self.assertEqual(os.path.realpath(module.file.fullpath), os.path.realpath(foo))
target.RemoveModule(module)
del module
More information about the lldb-commits
mailing list