[commit: ghc] master: Don't leave .hi files after running Haddock tests (e2ae52c)

git at git.haskell.org git at git.haskell.org
Mon Mar 4 21:04:56 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/e2ae52c34e81123dce9991fad393d96fd7b7af6a/ghc

>---------------------------------------------------------------

commit e2ae52c34e81123dce9991fad393d96fd7b7af6a
Author: Alec Theriault <alec.theriault at gmail.com>
Date:   Thu Feb 28 05:45:24 2019 -0800

    Don't leave .hi files after running Haddock tests
    
    RyanGlScott observed in https://github.com/haskell/haddock/issues/1030
    that running Haddock tests in GHC's testsuite left some `.hi` files
    around in `utils/haddock`. This should fix that problem.


>---------------------------------------------------------------

e2ae52c34e81123dce9991fad393d96fd7b7af6a
 testsuite/tests/haddock/haddock_testsuite/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/testsuite/tests/haddock/haddock_testsuite/Makefile b/testsuite/tests/haddock/haddock_testsuite/Makefile
index 59a4a17..37b0a98 100644
--- a/testsuite/tests/haddock/haddock_testsuite/Makefile
+++ b/testsuite/tests/haddock/haddock_testsuite/Makefile
@@ -18,6 +18,7 @@ haddockTest=$(TOP)/../utils/haddock/haddock-test/src/Test/Haddock.hs \
 htmlTest:
 	'$(TEST_HC)' \
 		-odir . \
+		-hidir . \
 		-package Cabal \
 		-o html-test \
 		$(haddockTest) \
@@ -32,6 +33,7 @@ htmlTest:
 latexTest:
 	'$(TEST_HC)' \
 		-odir . \
+		-hidir . \
 		-package Cabal \
 		-o latex-test \
 		$(haddockTest) \
@@ -46,6 +48,7 @@ latexTest:
 hoogleTest:
 	'$(TEST_HC)' \
 		-odir . \
+		-hidir . \
 		-package Cabal \
 		-o hoogle-test \
 		$(haddockTest) \
@@ -60,6 +63,7 @@ hoogleTest:
 hypsrcTest:
 	'$(TEST_HC)' \
 		-odir . \
+		-hidir . \
 		-package Cabal \
 		-o hypsrc-test \
 		$(haddockTest) \



More information about the ghc-commits mailing list