Author: Jonas Devlieghere
Date: 2022-04-08T10:46:34-07:00
New Revision: 257f98466222c1fba3d3f6c0afa5e93793d14109

URL: 
https://github.com/llvm/llvm-project/commit/257f98466222c1fba3d3f6c0afa5e93793d14109
DIFF: 
https://github.com/llvm/llvm-project/commit/257f98466222c1fba3d3f6c0afa5e93793d14109.diff

LOG: [lldb] Fix TestQuoting when run remotely

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 04b57c8fbd767..b070d26664cf5 100644
--- a/lldb/test/API/commands/settings/quoting/TestQuoting.py
+++ b/lldb/test/API/commands/settings/quoting/TestQuoting.py
@@ -50,16 +50,17 @@ def expect_args(self, args_in, args_out):
         to stdout. Compare the stdout with args_out."""
 
         filename = SettingsCommandTestCase.output_file_name
+        outfile = self.getBuildArtifact(filename)
 
         if lldb.remote_platform:
-            outfile = lldb.remote_platform.GetWorkingDirectory() + filename
+            outfile_arg = 
os.path.join(lldb.remote_platform.GetWorkingDirectory(), filename)
         else:
-            outfile = self.getBuildArtifact(filename)
+            outfile_arg = outfile
 
-        self.runCmd("process launch -- %s %s" % (outfile, args_in))
+        self.runCmd("process launch -- %s %s" % (outfile_arg, args_in))
 
         if lldb.remote_platform:
-            src_file_spec = lldb.SBFileSpec(outfile, False)
+            src_file_spec = lldb.SBFileSpec(outfile_arg, False)
             dst_file_spec = lldb.SBFileSpec(outfile, True)
             lldb.remote_platform.Get(src_file_spec, dst_file_spec)
 
@@ -67,5 +68,4 @@ def expect_args(self, args_in, args_out):
             output = f.read()
 
         self.RemoveTempFile(outfile)
-
         self.assertEqual(output, args_out)


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to