summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Z. Yang <ezyang@cs.stanford.edu>2017-02-27 15:15:37 -0800
committerEdward Z. Yang <ezyang@cs.stanford.edu>2017-02-27 22:57:48 -0800
commitc4354027ab73d2f9d04f1e352512eccd8ff09ab0 (patch)
treea2662b52628c6663148d7d5473ad453b5c00776b
parent990f182ad0cd5f588453cfbbb5018aca205017eb (diff)
downloadhaskell-c4354027ab73d2f9d04f1e352512eccd8ff09ab0.tar.gz
Fix Mac OS X timestamp resolution bug.
Test Plan: validate Reviewers: bgamari, austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D3229
-rw-r--r--testsuite/tests/backpack/cabal/bkpcabal05/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/testsuite/tests/backpack/cabal/bkpcabal05/Makefile b/testsuite/tests/backpack/cabal/bkpcabal05/Makefile
index d4c116bf32..b5a7fa5db1 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)" ""