[Lldb-commits] [lldb] [lldb] Fix TestGdbRemoteForkNonStop.py test (PR #131293)
Georgiy Samoylov via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 19 06:00:51 PDT 2025
================
@@ -743,6 +743,20 @@ def getBuildArtifact(self, name="a.out"):
"""Return absolute path to an artifact in the test's build directory."""
return os.path.join(self.getBuildDir(), name)
+ def get_process_working_directory(self):
+ """Get the working directory that should be used when launching processes for local or remote processes."""
+ if lldb.remote_platform:
+ # Remote tests set the platform working directory up in
+ # TestBase.setUp()
+ return lldb.remote_platform.GetWorkingDirectory()
+ else:
+ # local tests change directory into each test subdirectory
+ return self.getBuildDir()
+
+ def getWorkingDirArtifact(self, name="a.out"):
+ """Return absolute path to an artifact in the test's working directory."""
+ return os.path.join(self.get_process_working_directory(), name)
----------------
sga-sc wrote:
Addressed
https://github.com/llvm/llvm-project/pull/131293
More information about the lldb-commits
mailing list