diff options
author | Chaoren Lin <chaorenl@google.com> | 2015-05-29 18:43:46 +0000 |
---|---|---|
committer | Chaoren Lin <chaorenl@google.com> | 2015-05-29 18:43:46 +0000 |
commit | 9d2b7f982cb59659cf66713f43f59c69f2e72e17 (patch) | |
tree | f742397dcf4f119317e400df9f1526b9882c7056 | |
parent | 8eb2fc8c4a60445c84d996e2f369001106d309d9 (diff) | |
download | llvm-9d2b7f982cb59659cf66713f43f59c69f2e72e17.zip llvm-9d2b7f982cb59659cf66713f43f59c69f2e72e17.tar.gz llvm-9d2b7f982cb59659cf66713f43f59c69f2e72e17.tar.bz2 |
Fix hanging test suite when dosep.py is invoked directly.
Reviewers: zturner, sivachandra
Subscribers: lldb-commits
Differential Revision: http://reviews.llvm.org/D10134
llvm-svn: 238594
-rwxr-xr-x | lldb/test/dosep.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lldb/test/dosep.py b/lldb/test/dosep.py index ce0404b..3c50f90 100755 --- a/lldb/test/dosep.py +++ b/lldb/test/dosep.py @@ -92,9 +92,14 @@ def call_with_timeout(command, timeout): command = [timeout_command, '-s', 'QUIT', timeout] + command # Specifying a value for close_fds is unsupported on Windows when using subprocess.PIPE if os.name != "nt": - process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True) + process = subprocess.Popen(command, stdin=subprocess.PIPE, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE, + close_fds=True) else: - process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE) + process = subprocess.Popen(command, stdin=subprocess.PIPE, + stdout=subprocess.PIPE, + stderr=subprocess.PIPE) output = process.communicate() exit_status = process.returncode passes, failures = parse_test_results(output) |