diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-09-22 04:44:37 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-22 04:44:37 +0000 |
commit | 24a0813fc47d56b26a2e13aee44a76fde09c7bd3 (patch) | |
tree | ca4fea9fbfd8de5663f93cad72644086e1d07aae /llvm/utils/lit/TestRunner.py | |
parent | 753f8be411184c4059d82092d6ffe09d0c6524e3 (diff) | |
download | bcm5719-llvm-24a0813fc47d56b26a2e13aee44a76fde09c7bd3.tar.gz bcm5719-llvm-24a0813fc47d56b26a2e13aee44a76fde09c7bd3.zip |
lit: Don't use close_fds=True on Windows.
llvm-svn: 82521
Diffstat (limited to 'llvm/utils/lit/TestRunner.py')
-rw-r--r-- | llvm/utils/lit/TestRunner.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/utils/lit/TestRunner.py b/llvm/utils/lit/TestRunner.py index 5fadfd5f175..1501d287d9f 100644 --- a/llvm/utils/lit/TestRunner.py +++ b/llvm/utils/lit/TestRunner.py @@ -5,11 +5,15 @@ import ShUtil import Test import Util +import platform + class InternalShellError(Exception): def __init__(self, command, message): self.command = command self.message = message +# Don't use close_fds on Windows. +kUseCloseFDs = platform.system() != 'Windows' def executeCommand(command, cwd=None, env=None): p = subprocess.Popen(command, cwd=cwd, stdin=subprocess.PIPE, @@ -111,7 +115,7 @@ def executeShCmd(cmd, cfg, cwd, results): stdout = stdout, stderr = stderr, env = cfg.environment, - close_fds = True)) + close_fds = kUseCloseFDs)) # Immediately close stdin for any process taking stdin from us. if stdin == subprocess.PIPE: |