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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits