Commit 769e3ee7 authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari
Browse files

testsuite/recomp001: Sleep to ensure that GHC notices file change

Some operating systems (e.g. Darwin) have very poor file timestamp
resolution.  On these systems GHC often fails to notice that B.hs
changes in this testsuite, leading to sporatic test failures. Add a
sleep to ensure the change is noticed.

Test Plan: Validate

Reviewers: ezyang, austin

Subscribers: mpickering, gracjan, thomie

Differential Revision: https://phabricator.haskell.org/D2964
parent 38f289fa
......@@ -15,4 +15,7 @@ recomp001: clean
cp B1.hs B.hs
'$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 C.hs
cp B2.hs B.hs
# Operating systems with poor timer resolution (e.g. Darwin) need a bit
# of time here, lest GHC not realize that the file changed.
sleep 1
-'$(TEST_HC)' $(TEST_HC_OPTS) --make -v0 C.hs
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment