summaryrefslogtreecommitdiff
path: root/testsuite/driver/testglobals.py
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2016-06-20 14:36:03 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2016-06-28 12:25:29 +0200
commit58f0086b70f2f409b9f88de1611efcf18756f9e5 (patch)
tree80ac7bb98d0047b5e28f7c5b30953b3e2a333085 /testsuite/driver/testglobals.py
parentbafd615e40c2a11af1390e736f6122033eecc4c6 (diff)
downloadhaskell-58f0086b70f2f409b9f88de1611efcf18756f9e5.tar.gz
Testsuite: open/close stdin/stdout/stderr explicitly
This allows run_command's to contain `|`, and `no_stdin` isn't necessary anymore. Unfortunately it doesn't fix T7037 on Windows which I had hoped it would (testsuite driver tries to read a file that it just created itself, but the OS says it doesn't exist). The only drawback of this commit is that the command that the testsuite prints to the terminal (for debugging purposes) doesn't mention the files that stdout and stderr are redirected to anymore. This is probably ok. Update submodule unix. Differential Revision: https://phabricator.haskell.org/D1234
Diffstat (limited to 'testsuite/driver/testglobals.py')
-rw-r--r--testsuite/driver/testglobals.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/testsuite/driver/testglobals.py b/testsuite/driver/testglobals.py
index 23fd2f5d54..84921e43bc 100644
--- a/testsuite/driver/testglobals.py
+++ b/testsuite/driver/testglobals.py
@@ -183,9 +183,6 @@ class TestOptions:
# don't compare output
self.ignore_output = 0
- # don't give anything as stdin
- self.no_stdin = 0
-
# We sometimes want to modify the compiler_always_flags, so
# they are copied from config.compiler_always_flags when we
# make a new instance of TestOptions.