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() _______________________________________________ lldb-commits mailing list lldb-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits