Skip to content

Commit 7ce3dd4

Browse files
authored
[lldb] Fixed the test TestQuoting (llvm#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.
1 parent 710d95d commit 7ce3dd4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lldb/test/API/commands/settings/quoting/TestQuoting.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@ def expect_args(self, args_in, args_out):
5151
outfile = self.getBuildArtifact(filename)
5252

5353
if lldb.remote_platform:
54-
outfile_arg = os.path.join(
55-
lldb.remote_platform.GetWorkingDirectory(), filename
56-
)
54+
outfile_arg = lldbutil.append_to_process_working_directory(self, filename)
5755
else:
5856
outfile_arg = outfile
5957

0 commit comments

Comments
 (0)