diff options
author | Ian Lynagh <igloo@earth.li> | 2011-11-18 17:43:29 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2011-11-18 17:59:06 +0000 |
commit | b13a599ad124caff1e816cb4d7839a2a5717904b (patch) | |
tree | 69b660636cb9cd478a50ca9475e1cbe57a68673f /testsuite/tests/driver/recomp006 | |
parent | 0c8af703c28151e66f89e691253ec0b8eb4e7436 (diff) | |
download | haskell-b13a599ad124caff1e816cb4d7839a2a5717904b.tar.gz |
Filter -fforce-recomp out of TEST_HC_OPTS in the driver tests
It would make lots of them trivially pass
Diffstat (limited to 'testsuite/tests/driver/recomp006')
-rw-r--r-- | testsuite/tests/driver/recomp006/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/testsuite/tests/driver/recomp006/Makefile b/testsuite/tests/driver/recomp006/Makefile index a0f55d636d..839dbf0008 100644 --- a/testsuite/tests/driver/recomp006/Makefile +++ b/testsuite/tests/driver/recomp006/Makefile @@ -2,6 +2,10 @@ TOP=../../.. include $(TOP)/mk/boilerplate.mk include $(TOP)/mk/test.mk +# -fforce-recomp makes lots of driver tests trivially pass, so we +# filter it out from $(TEST_HC_OPTS). +TEST_HC_OPTS_NO_RECOMP = $(filter-out -fforce-recomp,$(TEST_HC_OPTS)) + OBJSUFFIX = .o # Test that changing the fixity of a type synonym operator forces recompilation @@ -9,8 +13,8 @@ OBJSUFFIX = .o recomp006: $(RM) A.hi A$(OBJSUFFIX) cp B1.hs B.hs - '$(TEST_HC)' $(TEST_HC_OPTS) --make A.hs 1>out 2>err + '$(TEST_HC)' $(TEST_HC_OPTS_NO_RECOMP) --make A.hs 1>out 2>err sleep 1 cp B2.hs B.hs # This should fail - if '$(TEST_HC)' $(TEST_HC_OPTS) --make A.hs; then false; fi + if '$(TEST_HC)' $(TEST_HC_OPTS_NO_RECOMP) --make A.hs; then false; fi |