diff options
author | Ben Gamari <ben@smart-cactus.org> | 2015-12-03 14:59:18 +0100 |
---|---|---|
committer | Ben Gamari <ben@smart-cactus.org> | 2015-12-03 23:00:16 +0100 |
commit | c5597bb6da612e0578290c3bccdac089d6519e19 (patch) | |
tree | 9ee38fbc91f0ba18cfebc4621153320a765098f5 /testsuite | |
parent | a034031a102bc08c76a6cdb104b72922ae22c96b (diff) | |
download | haskell-c5597bb6da612e0578290c3bccdac089d6519e19.tar.gz |
Revert "Create empty dump files when there was nothing to dump"
This reverts commit 8cba907ad404ba4005558b5a8966390159938172 which
broke `-ddump-to-file`.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/tests/driver/Makefile | 39 | ||||
-rw-r--r-- | testsuite/tests/driver/T10320-with-rule.hs | 9 | ||||
-rw-r--r-- | testsuite/tests/driver/T10320-without-rules.hs | 4 | ||||
-rw-r--r-- | testsuite/tests/driver/all.T | 10 |
4 files changed, 0 insertions, 62 deletions
diff --git a/testsuite/tests/driver/Makefile b/testsuite/tests/driver/Makefile index f590c73019..50696a7052 100644 --- a/testsuite/tests/driver/Makefile +++ b/testsuite/tests/driver/Makefile @@ -609,42 +609,3 @@ T10182: "$(TEST_HC)" $(TEST_HC_OPTS) -c T10182.hs-boot "$(TEST_HC)" $(TEST_HC_OPTS) -c T10182a.hs "$(TEST_HC)" $(TEST_HC_OPTS) -c T10182.hs - -.PHONY: T10320a -T10320a: - # check if an empty .dump-rule-rewrites is created when no rules were applied - $(RM) -rf T10320dump - $(CP) T10320-without-rules.hs T10320.hs - "$(TEST_HC)" $(TEST_HC_OPTS) -O -c T10320.hs -dumpdir T10320dump -ddump-to-file -ddump-rule-rewrites - [ -e T10320dump/T10320.dump-rule-rewrites ] - -.PHONY: T10320b -T10320b: - # check if an empty .dump-rule-firings is created when no rules were applied - $(RM) -rf T10320dump - $(CP) T10320-without-rules.hs T10320.hs - "$(TEST_HC)" $(TEST_HC_OPTS) -O -c T10320.hs -dumpdir T10320dump -ddump-to-file -ddump-rule-firings - [ -e T10320dump/T10320.dump-rule-firings ] - -.PHONY: T10320c -T10320c: - # check if existing .dump-rule-rewrites has been rewritten by an empty one when no rules were applied - $(RM) -rf T10320dump - $(CP) T10320-with-rule.hs T10320.hs - "$(TEST_HC)" $(TEST_HC_OPTS) -O -c T10320.hs -dumpdir T10320dump -ddump-to-file -ddump-rule-rewrites # generate a non-empty dump - $(CP) T10320-without-rules.hs T10320.hs - "$(TEST_HC)" $(TEST_HC_OPTS) -O -c T10320.hs -dumpdir T10320dump -ddump-to-file -ddump-rule-rewrites - [ -e T10320dump/T10320.dump-rule-rewrites -a ! -s T10320dump/T10320.dump-rule-rewrites ] # check if the file exists and has zero size - -.PHONY: T10320d -T10320d: - # check if existing .dump-rule-firings has been rewritten by an empty one when no rules were applied - $(RM) -rf T10320dump - $(CP) T10320-with-rule.hs T10320.hs - "$(TEST_HC)" $(TEST_HC_OPTS) -O -c T10320.hs -dumpdir T10320dump -ddump-to-file -ddump-rule-firings # generate a non-empty dump - $(CP) T10320-without-rules.hs T10320.hs - "$(TEST_HC)" $(TEST_HC_OPTS) -O -c T10320.hs -dumpdir T10320dump -ddump-to-file -ddump-rule-firings - [ -e T10320dump/T10320.dump-rule-firings -a ! -s T10320dump/T10320.dump-rule-firings ] # check if the file exists and has zero size - -.PHONY: T10320 -T10320: T10320a T10320b T10320c T10320d diff --git a/testsuite/tests/driver/T10320-with-rule.hs b/testsuite/tests/driver/T10320-with-rule.hs deleted file mode 100644 index 910db6493a..0000000000 --- a/testsuite/tests/driver/T10320-with-rule.hs +++ /dev/null @@ -1,9 +0,0 @@ -module T10320 where - -{-# RULES "rule" forall x. f x = 42 #-} - -f :: Int -> Int -f x = x -{-# NOINLINE [1] f #-} - -n = f (0 :: Int) diff --git a/testsuite/tests/driver/T10320-without-rules.hs b/testsuite/tests/driver/T10320-without-rules.hs deleted file mode 100644 index d070f82030..0000000000 --- a/testsuite/tests/driver/T10320-without-rules.hs +++ /dev/null @@ -1,4 +0,0 @@ -module T10320 where - -n :: Int -n = 42 diff --git a/testsuite/tests/driver/all.T b/testsuite/tests/driver/all.T index 3ba8ed5bf2..5c0de6eaec 100644 --- a/testsuite/tests/driver/all.T +++ b/testsuite/tests/driver/all.T @@ -460,13 +460,3 @@ test('T9360b', normal, run_command, ['{compiler} -e "" --interactive']) test('T10970', normal, compile_and_run, ['-hide-all-packages -package base -package containers']) test('T10970a', normal, compile_and_run, ['']) test('T4931', normal, compile_and_run, ['']) -test('T10320', - [ - extra_clean([ - 'T10320dump/T10320.dump-rule-firings', - 'T10320dump/T10320.dump-rule-rewrites', - 'T10320dump', - 'T10320.hs' - ]), - ], - run_command, ['$MAKE -s --no-print-directory T10320']) |