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 | 58c661ced16cd07c796bc867b1db0997c15db69f (patch) | |
tree | 3f92261651ddc8bbfeac5aee0059f989b649a7ec /utils/lit/TestRunner.py | |
parent | 6bd2b2e9a27df118951d2fdc88df249d56a4d8fe (diff) |
lit: Don't use close_fds=True on Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/lit/TestRunner.py')
-rw-r--r-- | utils/lit/TestRunner.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/lit/TestRunner.py b/utils/lit/TestRunner.py index 5fadfd5f17..1501d287d9 100644 --- a/utils/lit/TestRunner.py +++ b/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: |