From 7ddd0e9268436b6b1d61766d279676cbfba3a770 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 12 Oct 2014 16:05:57 -0400 Subject: [PATCH] Use sync(1) in an attmpt to de-flakify the regressuin tests. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a321275..4a6ce03 100644 --- 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; \ -- 2.43.0