]> thyrsus.com Git - comparator.git/commitdiff
Use sync(1) in an attmpt to de-flakify the regressuin tests.
authorEric S. Raymond <esr@thyrsus.com>
Sun, 12 Oct 2014 20:05:57 +0000 (16:05 -0400)
committerEric S. Raymond <esr@thyrsus.com>
Sun, 12 Oct 2014 20:05:57 +0000 (16:05 -0400)
Makefile

index a32127581a68b3985d3e2a7778699ef7b206924c..4a6ce0333009408de7fafce0958ce7246d656385 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -55,7 +55,7 @@ makeregress:
            comparator $(OPTS) -d test test$${n}-a test$${n}-b | grep -v 'Merge-Program' >test/out$${n}.good;\
        done
 
-# Note: This test is subject to fluky timing-dependent failurtes that 
+# Note: This test is subject to fluky timing-dependent failures that 
 # have nothing to do with the actual code. If you see a message of the form
 # "couldn't open testN-a.scf, Success", just run the test again.
 regress:
@@ -69,6 +69,7 @@ regress:
            fi; \
            comparator $(OPTS) -d test -c test$${n}-a | grep -v 'Merge-Program' >test$${n}-a.scf; \
            comparator $(OPTS) -d test -c test$${n}-b | grep -v 'Merge-Program' >test$${n}-b.scf; \
+           sync; sync; \
            comparator $(OPTS) test$${n}-a.scf test$${n}-b.scf | grep -v 'Merge-Program' >test/out$${n}.log;\
            rm test$${n}-a.scf test$${n}-b.scf; \
            if diff -u test/out$${n}.good test/out$${n}.log; \