summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghc-e/should_fail/all.T
diff options
context:
space:
mode:
authorThomas Miedema <thomasmiedema@gmail.com>2016-06-24 20:45:04 +0200
committerThomas Miedema <thomasmiedema@gmail.com>2016-06-29 18:20:51 +0200
commit1084d3755cac6ccd90f8decc0d79c315387ae388 (patch)
treea71d2acd5aa581d9c4edea6969edc3d0afc3447f /testsuite/tests/ghc-e/should_fail/all.T
parent8f7194fae23bdc6db72fc5784933f50310ce51f9 (diff)
downloadhaskell-1084d3755cac6ccd90f8decc0d79c315387ae388.tar.gz
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
Diffstat (limited to 'testsuite/tests/ghc-e/should_fail/all.T')
-rw-r--r--testsuite/tests/ghc-e/should_fail/all.T14
1 files changed, 7 insertions, 7 deletions
diff --git a/testsuite/tests/ghc-e/should_fail/all.T b/testsuite/tests/ghc-e/should_fail/all.T
index 8cb6d9a68b..c4baa0f3d4 100644
--- a/testsuite/tests/ghc-e/should_fail/all.T
+++ b/testsuite/tests/ghc-e/should_fail/all.T
@@ -1,22 +1,22 @@
-test('T7962', [exit_code(2), req_interp, ignore_output], run_command,
+test('T7962', req_interp, run_command,
['$MAKE --no-print-directory -s T7962'])
-test('T9905fail1', [exit_code(2), req_interp, ignore_output], run_command,
+test('T9905fail1', req_interp, run_command,
['$MAKE --no-print-directory -s T9905fail1'])
-test('T9905fail2', [exit_code(2), req_interp, ignore_output], run_command,
+test('T9905fail2', req_interp, run_command,
['$MAKE --no-print-directory -s T9905fail2'])
-test('T9905fail3', [exit_code(2), req_interp, ignore_output], run_command,
+test('T9905fail3', req_interp, run_command,
['$MAKE --no-print-directory -s T9905fail3'])
-test('ghc-e-fail1', [exit_code(2), req_interp, ignore_output], run_command,
+test('ghc-e-fail1', req_interp, run_command,
['$MAKE --no-print-directory -s ghc-e-fail1'])
-test('ghc-e-fail2', [exit_code(2), req_interp, ignore_output], run_command,
+test('ghc-e-fail2', req_interp, run_command,
['$MAKE --no-print-directory -s ghc-e-fail2'])
# Don't run on Windows, as executable is written to T9930.exe
# and no failure is induced.
-test('T9930fail', [exit_code(2), ignore_output, when(opsys('mingw32'), skip)], run_command,
+test('T9930fail', when(opsys('mingw32'), skip), run_command,
['$MAKE --no-print-directory -s T9930fail'])