From: Daniel Dunbar Date: Mon, 13 Jul 2009 21:24:28 +0000 (+0000) Subject: Make stdin for test scripts empty, so that tests don't accidentally hang waiting X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=02cee152383673a973e22d377b6a721a70682a71;p=clang Make stdin for test scripts empty, so that tests don't accidentally hang waiting for stdin. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@75506 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/test/TestRunner.py b/utils/test/TestRunner.py index 728d406e62..6c6de1bf66 100755 --- a/utils/test/TestRunner.py +++ b/utils/test/TestRunner.py @@ -151,6 +151,7 @@ def runOneTest(FILENAME, SUBST, OUTPUT, TESTNAME, CLANG, CLANGCC, try: p = subprocess.Popen(["/bin/sh",SCRIPT], cwd=os.path.dirname(FILENAME), + stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE) out,err = p.communicate()