[Lldb-commits] [PATCH] Fix TestQuoting on remote targets.

Chaoren Lin chaorenl at google.com
Tue Mar 3 10:56:28 PST 2015


Accidentally resolved remote file instead of local.


http://reviews.llvm.org/D8023

Files:
  test/settings/quoting/TestQuoting.py

Index: test/settings/quoting/TestQuoting.py
===================================================================
--- test/settings/quoting/TestQuoting.py
+++ test/settings/quoting/TestQuoting.py
@@ -68,6 +68,11 @@
 
         self.runCmd("process launch -o stdout.txt -- " + args_in)
 
+        if lldb.remote_platform:
+            src_file_spec = lldb.SBFileSpec('stdout.txt', False)
+            dst_file_spec = lldb.SBFileSpec('stdout.txt', True)
+            lldb.remote_platform.Get(src_file_spec, dst_file_spec);
+
         with open('stdout.txt', 'r') as f:
             output = f.read()

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8023.21123.patch
Type: text/x-patch
Size: 597 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150303/98640b6f/attachment.bin>


More information about the lldb-commits mailing list