From: Stefano Lattarini Date: Mon, 20 Feb 2012 13:04:46 +0000 (+0100) Subject: tests: fix a timestamp issue, and other minor buglets X-Git-Tag: v1.11b~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82616f0bc3340449ebb7d5e1e40cca40644e8b74;p=thirdparty%2Fautomake.git tests: fix a timestamp issue, and other minor buglets Reported by Panther Martin in automake bug#10848. * tests/conffile-leading-dot.test: Add a proper '$sleep' invocation, to avoid spurious failures on fast systems without sub-second timestamp resolutions. Add other minor related and unrelated improvements and fixlets since we are at it. --- diff --git a/THANKS b/THANKS index 3d1f75afd..36f8f4bb1 100644 --- a/THANKS +++ b/THANKS @@ -267,6 +267,7 @@ Olivier Louchart-Fletcher olivier@zipworld.com.au Olly Betts olly@muscat.co.uk Oren Ben-Kiki oren@ben-kiki.org Owen Taylor otaylor@redhat.com +Panther Martin mrsmiley98@lycos.com Patrick Welche prlw1@newn.cam.ac.uk Patrik Weiskircher me@justp.at Paul Berrevoets paul@swi.com diff --git a/tests/conffile-leading-dot.test b/tests/conffile-leading-dot.test index bfe81b5e0..732e10ffd 100755 --- a/tests/conffile-leading-dot.test +++ b/tests/conffile-leading-dot.test @@ -29,9 +29,7 @@ AC_CONFIG_FILES([./foo:a.in:b.in:c.in]) AC_OUTPUT END -echo foo = barbarbar > Makefile.am - -touch a.in b.in c.in +touch a.in b.in c.in Makefile.am $ACLOCAL @@ -44,16 +42,19 @@ grep "^configure\.in:4:.* omit leading '\\./'" stderr grep "^configure\.in:4:.*remake rules might be subtly broken" stderr # Check that our warning was actually justified. +sed 's/^AM_INIT_AUTOMAKE/&([-Wall -Wno-unsupported])/' t +mv -f t configure.in +rm -rf autom4te*.cache +$ACLOCAL $AUTOCONF $AUTOMAKE -Wall -Wno-unsupported ./configure $MAKE -grep barbarbar Makefile -# No need to sleep here, configure did that for us already. -echo foo = bazbazbaz > Makefile.am +$sleep +touch Makefile.am # Check that remake rules do truly break -- otherwise automake is # giving a bogus warning. -$MAKE 2>stderr && { cat stderr >&2 Exit 1; } +$MAKE 2>stderr && { cat stderr >&2; Exit 1; } cat stderr >&2 grep "config\\.status:.*invalid argument.*Makefile" stderr