[commit: ghc] master: Fix Mac OS X timestamp resolution bug. (c435402)

git at git.haskell.org git at git.haskell.org
Tue Feb 28 06:58:09 UTC 2017


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

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

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

commit c4354027ab73d2f9d04f1e352512eccd8ff09ab0
Author: Edward Z. Yang <ezyang at cs.stanford.edu>
Date:   Mon Feb 27 15:15:37 2017 -0800

    Fix Mac OS X timestamp resolution bug.
    
    Test Plan: validate
    
    Reviewers: bgamari, austin
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D3229


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

c4354027ab73d2f9d04f1e352512eccd8ff09ab0
 testsuite/tests/backpack/cabal/bkpcabal05/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/testsuite/tests/backpack/cabal/bkpcabal05/Makefile b/testsuite/tests/backpack/cabal/bkpcabal05/Makefile
index d4c116b..b5a7fa5 100644
--- a/testsuite/tests/backpack/cabal/bkpcabal05/Makefile
+++ b/testsuite/tests/backpack/cabal/bkpcabal05/Makefile
@@ -5,6 +5,10 @@ include $(TOP)/mk/test.mk
 SETUP='$(PWD)/Setup' -v0
 CONFIGURE=$(SETUP) configure $(CABAL_MINIMAL_BUILD) --with-ghc='$(TEST_HC)' --ghc-options='$(TEST_HC_OPTS)' --package-db='$(PWD)/tmp.d' --prefix='$(PWD)/inst'
 
+# This test checks if recompilation works correctly when we change an
+# hsig file which modifies the set of exported instances.  Makes sure
+# we track dependencies on instances from signatures correctly.
+
 bkpcabal05: clean
 	$(MAKE) -s --no-print-directory clean
 	'$(GHC_PKG)' init tmp.d
@@ -13,6 +17,7 @@ bkpcabal05: clean
 	cp A.hsig.in1 A.hsig
 	# typecheck
 	$(SETUP) build
+	sleep 1
 	cp A.hsig.in2 A.hsig
 	! $(SETUP) build
 ifneq "$(CLEANUP)" ""



More information about the ghc-commits mailing list