* tests/lex5.test: Sleep before calling AUTOMAKE the second time,
authorAlexandre Duret-Lutz <adl@gnu.org>
Thu, 22 Jan 2004 22:11:04 +0000 (22:11 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Thu, 22 Jan 2004 22:11:04 +0000 (22:11 +0000)
this fixes a spurious failure reported by Andreas Schwab.  Also
make sure ylwrap is not installed unless needed, and exercise
--no-force.

ChangeLog
tests/lex5.test

index 32b381e..192df40 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-01-22  Alexandre Duret-Lutz  <adl@gnu.org>
+
+       * tests/lex5.test: Sleep before calling AUTOMAKE the second time,
+       this fixes a spurious failure reported by Andreas Schwab.  Also
+       make sure ylwrap is not installed unless needed, and exercise
+       --no-force.
+
 2004-01-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
 
        * doc/automake.texi (Dist): Document limitations of distcheck-hook
index 607b943..60e36a2 100755 (executable)
@@ -1,5 +1,5 @@
 #! /bin/sh
-# Copyright (C) 2002, 2003  Free Software Foundation, Inc.
+# Copyright (C) 2002, 2003, 2004  Free Software Foundation, Inc.
 #
 # This file is part of GNU Automake.
 #
@@ -71,6 +71,8 @@ $MAKE foo/foo.o
 
 test -f foo/foo.c
 test -f foo/foo.o
+# ylwrap is not needed
+test ! -f ./ylwrap
 
 # Now, adds another lexer to test ylwrap.
 
@@ -80,7 +82,14 @@ cat >> Makefile.am << 'END'
 EXTRA_foo_foo_SOURCES = foo/foo2.l
 END
 
-$AUTOMAKE -a
+# Make sure Makefile.in has a new time stamp: the rebuild rules are
+# used below.  We do this after updating Makefile.am, that way we can
+# ensure that automake, even with --no-force, is not confused if the
+# new Makefile.am has the same time stamp as the older one (since the
+# output will change, --no-force should have no effect).
+$sleep
+
+$AUTOMAKE -a --no-force
 test -f ./ylwrap
 
 cd sub