]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
New test to ensure autom4te cache file locking works.
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 22 Apr 2009 19:05:57 +0000 (21:05 +0200)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Thu, 23 Apr 2009 17:46:59 +0000 (19:46 +0200)
* tests/tools.at (autom4te cache locking): New test.
Report by Eric Blake.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
ChangeLog
tests/tools.at

index 1db52b3a8abd32259a4c6282d72b05fb9639899f..93cf5f22a9c16b7120b358a2e69a1ae5f4bbcb05 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-04-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       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  <bonzini@gnu.org>
 
        manual: another grammar improvement.
index 871d2671998196b482e63a77d22339b2acbebd25..c4016cc7a2cb9d5fd494d2333754c727203a0a76 100644 (file)
@@ -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
 # ---------------------------------------------