summaryrefslogtreecommitdiff
path: root/tests/tools.at
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2009-04-22 21:05:57 +0200
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>2009-04-23 19:46:59 +0200
commitf4e756e351c3ade42d1c1a5126d411936cfb6b51 (patch)
tree35f51278b14f3996f14bde9b588f50ae084fe8d7 /tests/tools.at
parent00d0543653eb008e7ce17153ed46518f8ef7c31c (diff)
downloadautoconf-f4e756e351c3ade42d1c1a5126d411936cfb6b51.tar.gz
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 <Ralf.Wildenhues@gmx.de>
Diffstat (limited to 'tests/tools.at')
-rw-r--r--tests/tools.at20
1 files changed, 20 insertions, 0 deletions
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
# ---------------------------------------------