2nd attempt to fix T9032 test-case
authorHerbert Valerio Riedel <hvr@gnu.org>
Thu, 25 Dec 2014 22:16:28 +0000 (23:16 +0100)
committerHerbert Valerio Riedel <hvr@gnu.org>
Thu, 25 Dec 2014 22:16:28 +0000 (23:16 +0100)
First attempt via 7a2c9dde24b72f wasn't working properly. This attempt
should work better as it doesn't cause the makefile recipe to fail which
causes `make` to emit additional varying output.

testsuite/tests/rename/should_fail/Makefile
testsuite/tests/rename/should_fail/T9032.stderr
testsuite/tests/rename/should_fail/T9032.stdout [deleted file]
testsuite/tests/rename/should_fail/all.T

index 037694c..b2393f6 100644 (file)
@@ -4,5 +4,5 @@ include $(TOP)/mk/test.mk
 
 T9032:
        '$(TEST_HC)' $(TEST_HC_OPTS) -c -fforce-recomp T9032.hs
-       '$(TEST_HC)' $(TEST_HC_OPTS) -c -fforce-recomp -DERR T9032.hs
+       -'$(TEST_HC)' $(TEST_HC_OPTS) -c -fforce-recomp -DERR T9032.hs
 
index c02dac8..21af9ac 100644 (file)
@@ -1,3 +1,2 @@
 
 T9032.hs:6:1: A module cannot import itself: T9032
-make[3]: *** [T9032] Error 1
diff --git a/testsuite/tests/rename/should_fail/T9032.stdout b/testsuite/tests/rename/should_fail/T9032.stdout
deleted file mode 100644 (file)
index 82b486f..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Makefile:6: recipe for target 'T9032' failed
index 8d60ef3..2aeee2f 100644 (file)
@@ -129,6 +129,6 @@ test('T9077', normal, compile_fail, [''])
 test('T9815', normal, compile_fail, [''])
 
 test('T9032',
-     exit_code(2),
+     normal,
      run_command,
      ['$MAKE -s --no-print-directory T9032'])