diff options
author | Edward Z. Yang <ezyang@cs.stanford.edu> | 2015-04-21 10:26:25 -0700 |
---|---|---|
committer | Edward Z. Yang <ezyang@cs.stanford.edu> | 2015-04-22 05:39:55 -0700 |
commit | 1bd1ceffce7f3027ae632086844f95976ed600c8 (patch) | |
tree | fb0281af2cae35b7c874a7d05feb38c45eac3ad8 /testsuite/tests/deriving/should_fail | |
parent | 1bb1ff2253a7f235f7ef45b06321b104c0365d99 (diff) | |
download | haskell-1bd1ceffce7f3027ae632086844f95976ed600c8.tar.gz |
Don't use self {-# SOURCE #-} import in test-cases.
Summary:
It's kind of buggy, c.f. #10182, and isn't motivated by any
real world programs, so we're going to get rid of it (despite
it being handy for GHC test cases.)
Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
Test Plan: validate
Reviewers: simonpj, austin
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D862
Diffstat (limited to 'testsuite/tests/deriving/should_fail')
-rw-r--r-- | testsuite/tests/deriving/should_fail/Makefile | 7 | ||||
-rw-r--r-- | testsuite/tests/deriving/should_fail/T1133A.hs | 2 | ||||
-rw-r--r-- | testsuite/tests/deriving/should_fail/T1133Aa.hs | 3 | ||||
-rw-r--r-- | testsuite/tests/deriving/should_fail/all.T | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/testsuite/tests/deriving/should_fail/Makefile b/testsuite/tests/deriving/should_fail/Makefile index 7e68e3840e..e71e5f9b24 100644 --- a/testsuite/tests/deriving/should_fail/Makefile +++ b/testsuite/tests/deriving/should_fail/Makefile @@ -6,11 +6,8 @@ drvfail016: $(RM) -f drvfail016.hi-boot drvfail016.o-boot '$(TEST_HC)' $(TEST_HC_OPTS) -XGeneralizedNewtypeDeriving -c drvfail016.hs-boot; echo $$? -.PHONY: T1133A Roles12 +.PHONY: T1133A T1133A: '$(TEST_HC)' $(TEST_HC_OPTS) -c T1133A.hs-boot + -'$(TEST_HC)' $(TEST_HC_OPTS) -c T1133Aa.hs -'$(TEST_HC)' $(TEST_HC_OPTS) -c T1133A.hs - -Roles12: - '$(TEST_HC)' $(TEST_HC_OPTS) -c Roles12.hs-boot - -'$(TEST_HC)' $(TEST_HC_OPTS) -c Roles12.hs diff --git a/testsuite/tests/deriving/should_fail/T1133A.hs b/testsuite/tests/deriving/should_fail/T1133A.hs index b5950ea1fb..2c8421aaf1 100644 --- a/testsuite/tests/deriving/should_fail/T1133A.hs +++ b/testsuite/tests/deriving/should_fail/T1133A.hs @@ -1,6 +1,6 @@ module T1133A where -import {-# SOURCE #-} T1133A +import T1133Aa newtype X = X Int deriving Enum diff --git a/testsuite/tests/deriving/should_fail/T1133Aa.hs b/testsuite/tests/deriving/should_fail/T1133Aa.hs new file mode 100644 index 0000000000..8adcd01c2d --- /dev/null +++ b/testsuite/tests/deriving/should_fail/T1133Aa.hs @@ -0,0 +1,3 @@ +module T1133Aa where + +import {-# SOURCE #-} T1133A diff --git a/testsuite/tests/deriving/should_fail/all.T b/testsuite/tests/deriving/should_fail/all.T index 60a4b7b45c..adc72fc59d 100644 --- a/testsuite/tests/deriving/should_fail/all.T +++ b/testsuite/tests/deriving/should_fail/all.T @@ -35,7 +35,7 @@ test('T5478', normal, compile_fail, ['']) test('T5686', normal, compile_fail, ['']) test('T5922', normal, compile_fail, ['']) test('T1133A', - extra_clean(['T1133A.o-boot', 'T1133A.hi-boot']), + extra_clean(['T1133A.o-boot', 'T1133A.hi-boot', 'T1133Aa.o', 'T1133Aa.hi']), run_command, ['$MAKE --no-print-directory -s T1133A']) # 5863a was removed as it was out of date re: fixing #9858 |