[commit: ghc] master: Testsuite: open/close stdin/stdout/stderr explicitly (58f0086)
git at git.haskell.org
git at git.haskell.org
Tue Jun 28 12:21:42 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/58f0086b70f2f409b9f88de1611efcf18756f9e5/ghc
>---------------------------------------------------------------
commit 58f0086b70f2f409b9f88de1611efcf18756f9e5
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date: Mon Jun 20 14:36:03 2016 +0200
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
>---------------------------------------------------------------
58f0086b70f2f409b9f88de1611efcf18756f9e5
libraries/base/tests/IO/all.T | 7 +-
libraries/unix | 2 +-
testsuite/driver/testglobals.py | 3 -
testsuite/driver/testlib.py | 137 ++++++++++++++----------------
testsuite/tests/ghc-e/should_run/Makefile | 2 +-
testsuite/tests/rts/all.T | 2 +-
6 files changed, 68 insertions(+), 85 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 58f0086b70f2f409b9f88de1611efcf18756f9e5
More information about the ghc-commits
mailing list