[Lldb-commits] [lldb] 7ce3dd4 - [lldb] Fixed the test TestQuoting (#91886)
via lldb-commits
lldb-commits at lists.llvm.org
Mon May 13 04:58:42 PDT 2024
Author: Dmitry Vasilyev
Date: 2024-05-13T15:58:39+04:00
New Revision: 7ce3dd49eb80816e3af52022ba2521b28a068c7b
URL: https://github.com/llvm/llvm-project/commit/7ce3dd49eb80816e3af52022ba2521b28a068c7b
DIFF: https://github.com/llvm/llvm-project/commit/7ce3dd49eb80816e3af52022ba2521b28a068c7b.diff
LOG: [lldb] Fixed the test TestQuoting (#91886)
os.path.join() uses the path separator of the host OS by default.
outfile_arg will be incorrect in case of Windows host and Linux target.
Use lldbutil.append_to_process_working_directory() instead.
Added:
Modified:
lldb/test/API/commands/settings/quoting/TestQuoting.py
Removed:
################################################################################
diff --git a/lldb/test/API/commands/settings/quoting/TestQuoting.py b/lldb/test/API/commands/settings/quoting/TestQuoting.py
index 393f4be3c8242..60eeeead4e0a4 100644
--- a/lldb/test/API/commands/settings/quoting/TestQuoting.py
+++ b/lldb/test/API/commands/settings/quoting/TestQuoting.py
@@ -51,9 +51,7 @@ def expect_args(self, args_in, args_out):
outfile = self.getBuildArtifact(filename)
if lldb.remote_platform:
- outfile_arg = os.path.join(
- lldb.remote_platform.GetWorkingDirectory(), filename
- )
+ outfile_arg = lldbutil.append_to_process_working_directory(self, filename)
else:
outfile_arg = outfile
More information about the lldb-commits
mailing list