summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-e
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/tests/ghc-e
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/tests/ghc-e')
-rw-r--r--testsuite/tests/ghc-e/should_run/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/tests/ghc-e/should_run/Makefile b/testsuite/tests/ghc-e/should_run/Makefile
index c98b98ada7..29b4e9fef6 100644
--- a/testsuite/tests/ghc-e/should_run/Makefile
+++ b/testsuite/tests/ghc-e/should_run/Makefile
@@ -22,7 +22,7 @@ ghc-e006:
'$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e "data X = X deriving Show" -e "X"
T2228:
- '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e ":main" T2228.hs
+ '$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e ":main" T2228.hs </dev/null
T2636:
'$(TEST_HC)' $(TEST_HC_OPTS) -ignore-dot-ghci -e ":main" T2636.hs; if [ "$?" != 0 ]; then true; else false; fi