From cfce77e33b375d125283a0c22b643dcb6cc1af44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Bj=C3=B6rklund?= Date: Mon, 30 Nov 2020 08:41:01 +0100 Subject: Try do detect if we need to sleep in tests between a build and when a source file is modified. Without a sleep the source file and the target may get the same modification time, on some machines. --- test/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/Makefile b/test/Makefile index 8d1a5e8..0517684 100644 --- a/test/Makefile +++ b/test/Makefile @@ -46,6 +46,8 @@ endif ifeq ($(shell touch a; sleep 0.01; touch b; sleep 0.01; touch c; test c -nt b -a b -nt a; echo $$?; rm a b c),1) SLEEP = sleep 1 +else ifeq ($(shell touch a; touch b; touch c; test c -nt b -a b -nt a; echo $$?; rm a b c),1) +SLEEP = sleep 0.01 else SLEEP = endif -- cgit v1.2.3