summaryrefslogtreecommitdiff
path: root/testsuite/tests/th/Makefile
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2012-01-30 20:12:50 +0000
committerIan Lynagh <igloo@earth.li>2012-01-30 20:12:50 +0000
commitb2e4c1edab11019c47c5a383cede46cac519e59c (patch)
treed3ee7b00201664a533652aa683d3481e9c08df37 /testsuite/tests/th/Makefile
parent874c337a4c74d13bd3063c7e27cf6db0a5f0d455 (diff)
downloadhaskell-b2e4c1edab11019c47c5a383cede46cac519e59c.tar.gz
Make TH_Depends more portable
We now just sleep for 2 seconds, rather than using touch --date="now + 3 seconds" which doesn't work on OS X. OS X does have "touch -A", but that doesn't work on Linux.
Diffstat (limited to 'testsuite/tests/th/Makefile')
-rw-r--r--testsuite/tests/th/Makefile4
1 files changed, 1 insertions, 3 deletions
diff --git a/testsuite/tests/th/Makefile b/testsuite/tests/th/Makefile
index 97692391c0..bdb49dbf09 100644
--- a/testsuite/tests/th/Makefile
+++ b/testsuite/tests/th/Makefile
@@ -29,10 +29,8 @@ TH_Depends:
# Remove the executable, as GHC won't relink if the timestamps seem to
# be the same
$(RM) TH_Depends TH_Depends.exe
+ sleep 2
echo "second run" > TH_Depends_external.txt
-# Give TH_Depends_external.txt a future date in case it gets the same
-# timestamp again
- touch --date="now + 3 seconds" TH_Depends_external.txt
'$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 TH_Depends
./TH_Depends