From f4e756e351c3ade42d1c1a5126d411936cfb6b51 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Wed, 22 Apr 2009 21:05:57 +0200 Subject: 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 --- tests/tools.at | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'tests/tools.at') diff --git a/tests/tools.at b/tests/tools.at index 871d2671..c4016cc7 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 # --------------------------------------------- -- cgit v1.2.1