Author: Pavel Labath
Date: 2025-04-22T14:41:59+02:00
New Revision: 587206a442ebb656f9d72e7e0cc5845ef3a2f7ed

URL: 
https://github.com/llvm/llvm-project/commit/587206a442ebb656f9d72e7e0cc5845ef3a2f7ed
DIFF: 
https://github.com/llvm/llvm-project/commit/587206a442ebb656f9d72e7e0cc5845ef3a2f7ed.diff

LOG: [lldb] Avoid modifying the source tree in TestPlatformLaunchGDBServer

The test binary gets uploaded to the "remote" platform's working
directory which, by default is in the source tree. Change that.

Added: 
    

Modified: 
    
lldb/test/API/commands/platform/launchgdbserver/TestPlatformLaunchGDBServer.py

Removed: 
    


################################################################################
diff  --git 
a/lldb/test/API/commands/platform/launchgdbserver/TestPlatformLaunchGDBServer.py
 
b/lldb/test/API/commands/platform/launchgdbserver/TestPlatformLaunchGDBServer.py
index ea846149e4983..584879d3e723a 100644
--- 
a/lldb/test/API/commands/platform/launchgdbserver/TestPlatformLaunchGDBServer.py
+++ 
b/lldb/test/API/commands/platform/launchgdbserver/TestPlatformLaunchGDBServer.py
@@ -91,6 +91,9 @@ def test_lldb_server_weird_symlinks(self):
 
         connect_url = "connect://[%s]:%s" % (hostname, socket_id)
         self.runCmd("platform connect %s" % connect_url)
+        wd = self.getBuildArtifact("wd")
+        self.assertSuccess(new_platform.MakeDirectory(wd))
+        new_platform.SetWorkingDirectory(wd)
         self.runCmd("target create {}".format(self.getBuildArtifact("a.out")))
         self.runCmd("run")
         self.expect(


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to