Testsuite: open/close stdin/stdout/stderr explicitly
authorThomas Miedema <thomasmiedema@gmail.com>
Mon, 20 Jun 2016 12:36:03 +0000 (14:36 +0200)
committerThomas Miedema <thomasmiedema@gmail.com>
Tue, 28 Jun 2016 10:25:29 +0000 (12:25 +0200)
commit58f0086b70f2f409b9f88de1611efcf18756f9e5
tree80ac7bb98d0047b5e28f7c5b30953b3e2a333085
parentbafd615e40c2a11af1390e736f6122033eecc4c6
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
libraries/base/tests/IO/all.T
libraries/unix
testsuite/driver/testglobals.py
testsuite/driver/testlib.py
testsuite/tests/ghc-e/should_run/Makefile
testsuite/tests/rts/all.T