[Lldb-commits] [lldb] 70fcb23 - [lldb/test] Fix TestCompletion on Windows after realpath change (#193878)

via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 23 19:51:47 PDT 2026


Author: Med Ismail Bennani
Date: 2026-04-23T19:51:42-07:00
New Revision: 70fcb235250bf125f478e4a8f439164dd18ad402

URL: https://github.com/llvm/llvm-project/commit/70fcb235250bf125f478e4a8f439164dd18ad402
DIFF: https://github.com/llvm/llvm-project/commit/70fcb235250bf125f478e4a8f439164dd18ad402.diff

LOG: [lldb/test] Fix TestCompletion on Windows after realpath change (#193878)

Added: 
    

Modified: 
    lldb/packages/Python/lldbsuite/test/lldbtest.py

Removed: 
    


################################################################################
diff  --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 5b6ec2ecd8947..3922509d5d4f9 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -2232,7 +2232,8 @@ def registerSharedLibrariesWithTarget(self, target, shlibs):
                 # Make sure we found the local shared library in the above code
                 self.assertTrue(os.path.exists(local_shlib_path))
 
-            local_shlib_path = os.path.realpath(local_shlib_path)
+            if lldb.remote_platform:
+                local_shlib_path = os.path.realpath(local_shlib_path)
             # Add the shared library to our target
             shlib_module = target.AddModule(local_shlib_path, None, None, None)
             if lldb.remote_platform:


        


More information about the lldb-commits mailing list