Testsuite: use ignore_stderr/stdout instead of ignore_output
authorThomas Miedema <thomasmiedema@gmail.com>
Fri, 24 Jun 2016 18:45:04 +0000 (20:45 +0200)
committerThomas Miedema <thomasmiedema@gmail.com>
Wed, 29 Jun 2016 16:20:51 +0000 (18:20 +0200)
commit1084d3755cac6ccd90f8decc0d79c315387ae388
treea71d2acd5aa581d9c4edea6969edc3d0afc3447f
parent8f7194fae23bdc6db72fc5784933f50310ce51f9
Testsuite: use ignore_stderr/stdout instead of ignore_output

The problem with ignore_output is that it hides errors for WAY=ghci.
GHCi always returns with exit code 0 (unless it is broken itself).

For example: ghci015 must have been failing with compile errors for
years, but we didn't notice because all output was ignored.

Therefore, replace all uses of ignore_output with either ignore_stderr
or ignore_stdout. In some cases I opted for adding the expected output.

Update submodule hpc and stm.

Reviewed by: simonmar

Differential Revision: https://phabricator.haskell.org/D2367
41 files changed:
libraries/base/tests/all.T
libraries/base/tests/topHandler03.stderr [new file with mode: 0644]
libraries/hpc
libraries/stm
testsuite/driver/extra_files.py
testsuite/driver/testglobals.py
testsuite/driver/testlib.py
testsuite/tests/cabal/Makefile
testsuite/tests/cabal/all.T
testsuite/tests/cabal/cabal03/Makefile
testsuite/tests/cabal/cabal03/all.T
testsuite/tests/cabal/cabal03/cabal03.stderr [new file with mode: 0644]
testsuite/tests/cabal/cabal05/all.T
testsuite/tests/cabal/cabal05/cabal05.stderr [new file with mode: 0644]
testsuite/tests/cabal/cabal09/all.T
testsuite/tests/cabal/ghcpkg04.stderr
testsuite/tests/concurrent/should_run/all.T
testsuite/tests/dph/enumfromto/dph-enumfromto.T
testsuite/tests/driver/Makefile
testsuite/tests/driver/all.T
testsuite/tests/ghc-e/should_fail/Makefile
testsuite/tests/ghc-e/should_fail/T7962.stderr [new file with mode: 0644]
testsuite/tests/ghc-e/should_fail/T9905fail1.stderr [new file with mode: 0644]
testsuite/tests/ghc-e/should_fail/T9905fail2.stderr [new file with mode: 0644]
testsuite/tests/ghc-e/should_fail/T9905fail3.stderr [new file with mode: 0644]
testsuite/tests/ghc-e/should_fail/T9930fail.stderr [new file with mode: 0644]
testsuite/tests/ghc-e/should_fail/all.T
testsuite/tests/ghc-e/should_fail/ghc-e-fail1.stderr [new file with mode: 0644]
testsuite/tests/ghc-e/should_fail/ghc-e-fail2.stderr [new file with mode: 0644]
testsuite/tests/ghci/scripts/all.T
testsuite/tests/ghci/scripts/ghci015.hs
testsuite/tests/hpc/all.T
testsuite/tests/perf/should_run/all.T
testsuite/tests/rts/T11223/all.T
testsuite/tests/rts/T9839_01.hs [new file with mode: 0755]
testsuite/tests/rts/T9839_01.stderr [new file with mode: 0644]
testsuite/tests/rts/T9839_02.stderr [new file with mode: 0644]
testsuite/tests/rts/T9839_03.stderr [new file with mode: 0644]
testsuite/tests/rts/T9839_05.stderr [new file with mode: 0644]
testsuite/tests/rts/T9839_06.stderr [new file with mode: 0644]
testsuite/tests/rts/all.T