Hello,

On Tue, Dec 05, 2006 at 10:10:57PM +0100, Ralf Wildenhues wrote:
> * Paul Eggert wrote on Tue, Dec 05, 2006 at 06:21:42PM CET:
> > The goal here is to avoid a tradition of tests that sleep.  Sleeping
> > slows things down.

speaking about avoiding unnecessary sleep:

Earlier in this thread I proposed using `find -newer'.  No
protability problem are known, and it allows us to avoid one of the
sleeps.

What about the following patch?

Stepan Kasal
2006-12-06  Stepan Kasal  <[EMAIL PROTECTED]>

        * tests/tools.at (autom4te preselections): Use `find -newer';
        remove one of the sleeps.

Index: tests/tools.at
===================================================================
RCS file: /cvsroot/autoconf/autoconf/tests/tools.at,v
retrieving revision 1.96
diff -u -r1.96 tools.at
--- tests/tools.at      5 Dec 2006 21:08:50 -0000       1.96
+++ tests/tools.at      6 Dec 2006 14:26:20 -0000
@@ -863,14 +863,13 @@
 # If this test fails due to missing entries in lib/autom4te.in, then
 # comparing the old and new requests is a good place to start debugging:
 cp autom4te.cache/requests old-requests
-$sleep # need to make sure the stamp file is strictly newer.
 echo newer >newer
 $sleep # if `configure' is regenerated, we want it to be strictly newer,
        # to catch the error consistently.
 AT_CHECK([aclocal], [], [], [ignore])
 AT_CHECK([automake --no-force --add-missing], [], [], [ignore])
 AT_CHECK([autoconf])
-AT_CHECK([set x `ls -1t newer configure`; test "$2" = newer ||
+AT_CHECK([test "`find configure -newer newer`" = "" ||
          { diff old-requests autom4te.cache/requests; exit 1; }])
 
 AT_CLEANUP

Reply via email to