From: Ralf Wildenhues Date: Wed, 22 Apr 2009 19:05:57 +0000 (+0200) Subject: New test to ensure autom4te cache file locking works. X-Git-Tag: v2.64~66 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4e756e351c3ade42d1c1a5126d411936cfb6b51;p=thirdparty%2Fautoconf.git New test to ensure autom4te cache file locking works. * tests/tools.at (autom4te cache locking): New test. Report by Eric Blake. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 1db52b3a8..93cf5f22a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2009-04-22 Ralf Wildenhues + + New test to ensure autom4te cache file locking works. + * tests/tools.at (autom4te cache locking): New test. + Report by Eric Blake. + 2009-04-22 Paolo Bonzini manual: another grammar improvement. diff --git a/tests/tools.at b/tests/tools.at index 871d26719..c4016cc7a 100644 --- a/tests/tools.at +++ b/tests/tools.at @@ -1011,6 +1011,26 @@ AT_CHECK([test "`find configure -newer newer`" = "" || AT_CLEANUP +# autom4te cache locking +# ---------------------- + +AT_SETUP([autom4te cache locking]) + +# Cannot use AT_CHECK here, autotest internals could be messed up. + +(echo AC_INIT; sleep 2; echo) \ + | (autom4te --language=autoconf -o configure; echo $? >&2 ) 2>errlog & +AT_CHECK([echo AC_INIT | autom4te --language=autoconf -o configure]) +wait + +# Ignore additional output from shell verbose or xtrace mode. +AT_CHECK([grep 'cannot rename' errlog], [1]) +AT_CHECK([grep '^0$' errlog], [], [ignore]) +AT_CHECK_CONFIGURE + +AT_CLEANUP + + # autotools and file names containing whitespace # ---------------------------------------------