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

Chaoren Lin chaorenl at google.com
Mon Mar 2 21:01:11 PST 2015


Disable on 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,12 @@
 
         self.runCmd("process launch -o stdout.txt -- " + args_in)
 
+        if !os.path.isfile('stdout.txt'):
+            platform = self.dbg.GetSelectedPlatform()
+            src_file_spec = lldb.SBFileSpec('stdout.txt', True)
+            dst_file_spec = lldb.SBFileSpec('stdout.txt', False)
+            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.21079.patch
Type: text/x-patch
Size: 649 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150303/128ed5d8/attachment.bin>


More information about the lldb-commits mailing list