automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: s/sleep 1/sleep 2/g


From: Alexandre Duret-Lutz
Subject: FYI: s/sleep 1/sleep 2/g
Date: 07 Apr 2002 23:31:34 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

I'm checking this in, to work around the issue reported
by Dave Brondsema on address@hidden

Index: ChangeLog
===================================================================
RCS file: /cvs/automake/automake/ChangeLog,v
retrieving revision 1.1805
diff -u -r1.1805 ChangeLog
--- ChangeLog   4 Apr 2002 10:42:24 -0000       1.1805
+++ ChangeLog   7 Apr 2002 21:31:05 -0000
@@ -1,3 +1,9 @@
+2002-04-07  Alexandre Duret-Lutz  <address@hidden>
+
+       * Makefile.am (maintainer-check): Check for `sleep 1' uses in the
+       test suite.  Suggest `sleep 2' instead.
+       * tests/confsub.test: Use `sleep 2'.
+
 2002-04-04  Paul Eggert  <address@hidden>
 
        * lib/am/subdirs.am:
Index: Makefile.am
===================================================================
RCS file: /cvs/automake/automake/Makefile.am,v
retrieving revision 1.187
diff -u -r1.187 Makefile.am
--- Makefile.am 26 Mar 2002 09:38:45 -0000      1.187
+++ Makefile.am 7 Apr 2002 21:31:05 -0000
@@ -188,6 +188,13 @@
          echo 'the above lines.' 1>&2; \
          exit 1; \
        fi
+## Never use `sleep 1' to create files with different timestamps.
+## Use `sleep 2' instead.  Some filesystems (e.g., Windows') have only
+## a 2sec resolution.
+       @if egrep '\bsleep +1\b' $(srcdir)/tests/*.test; then \
+         echo 'Do not use "sleep 1" in the above tests.  Use "sleep 2" 
instead.' 1>&2; \
+         exit 1; \
+       fi
 
 
 # Tag before making distribution.  Also, don't make a distribution if
Index: tests/confsub.test
===================================================================
RCS file: /cvs/automake/automake/tests/confsub.test,v
retrieving revision 1.17
diff -u -r1.17 confsub.test
--- tests/confsub.test  21 Mar 2002 09:11:56 -0000      1.17
+++ tests/confsub.test  7 Apr 2002 21:31:14 -0000
@@ -36,7 +36,7 @@
 ./configure || exit 1
 fgrep 'Before.' subdir/config.h
 
-sleep 1
+sleep 2
 echo 'After.' > subdir/config.hin
 $MAKE || exit 1
 fgrep 'After.' subdir/config.h || exit 1

-- 
Alexandre Duret-Lutz




reply via email to

[Prev in Thread] Current Thread [Next in Thread]