Skip to content

Commit 587206a

Browse files
committed
[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.
1 parent e428afd commit 587206a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ def test_lldb_server_weird_symlinks(self):
9191

9292
connect_url = "connect://[%s]:%s" % (hostname, socket_id)
9393
self.runCmd("platform connect %s" % connect_url)
94+
wd = self.getBuildArtifact("wd")
95+
self.assertSuccess(new_platform.MakeDirectory(wd))
96+
new_platform.SetWorkingDirectory(wd)
9497
self.runCmd("target create {}".format(self.getBuildArtifact("a.out")))
9598
self.runCmd("run")
9699
self.expect(

0 commit comments

Comments
 (0)