[Lldb-commits] [lldb] r231101 - Fix TestQuoting on remote targets.
Chaoren Lin
chaorenl at google.com
Tue Mar 3 11:10:39 PST 2015
Author: chaoren
Date: Tue Mar 3 13:10:39 2015
New Revision: 231101
URL: http://llvm.org/viewvc/llvm-project?rev=231101&view=rev
Log:
Fix TestQuoting on remote targets.
Summary: Needed to transfer stdout.txt to host before reading.
Reviewers: ovyalov, clayborg
Subscribers: tberghammer, lldb-commits
Differential Revision: http://reviews.llvm.org/D8023
Modified:
lldb/trunk/test/settings/quoting/TestQuoting.py
Modified: lldb/trunk/test/settings/quoting/TestQuoting.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/settings/quoting/TestQuoting.py?rev=231101&r1=231100&r2=231101&view=diff
==============================================================================
--- lldb/trunk/test/settings/quoting/TestQuoting.py (original)
+++ lldb/trunk/test/settings/quoting/TestQuoting.py Tue Mar 3 13:10:39 2015
@@ -68,6 +68,11 @@ class SettingsCommandTestCase(TestBase):
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()
More information about the lldb-commits
mailing list