Hi Ralf,

as I mentioned a few weeks ago, I get a few FAILs when runnig 'make check'
on the current Automake-git.  Looking into the three tests I concluded that
it must be a timing problem.  Running ten times just these three tests I
got:

aclocal9: 6 FAIL + 4 PASS
acloca10: 10 FAIL
nodef: 8 FAIL + 2 PASS

after applying the attached patch I got 10 PASSes for each test.

The patch introduces a delay between successive invocations of aclocal.
Probably using 'aclocal -f' would have the same effect, but a delay --
undesirable as it might be -- seems to be closer to a typical use case.

BTW: There may be additional test suffering from the same problem.

Regards
Peter Breitenlohner <p...@mppmu.mpg.de>
From 717445fbf97fedcaeacefd55c4b078bd2a8c56c7 Mon Sep 17 00:00:00 2001
From: Peter Breitenlohner <p...@mppmu.mpg.de>
Date: Mon, 23 Nov 2009 21:46:16 +0100
Subject: [PATCH] Add a delay so these tests succeed


Signed-off-by: Peter Breitenlohner <p...@mppmu.mpg.de>
---
 tests/acloca10.test |    4 ++++
 tests/aclocal9.test |    2 ++
 tests/nodef.test    |    2 ++
 3 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/tests/acloca10.test b/tests/acloca10.test
index 7716f2a..7576beb 100755
--- a/tests/acloca10.test
+++ b/tests/acloca10.test
@@ -55,6 +55,8 @@ grep MACRO3 aclocal.m4
 test ! -f m4_1/macro.m4
 test ! -f m4_2/macro.m4
 
+sleep 1
+
 $ACLOCAL -I m4_2 -I m4_1
 $AUTOCONF
 ./configure
@@ -65,6 +67,8 @@ grep MACRO3 aclocal.m4
 test ! -f m4_1/macro.m4
 test ! -f m4_2/macro.m4
 
+sleep 1
+
 ACLOCAL_TESTSUITE_FLAGS='-I m4_1 -I m4_2'
 $ACLOCAL --install
 $AUTOCONF
diff --git a/tests/aclocal9.test b/tests/aclocal9.test
index 325f6ae..913ff9a 100755
--- a/tests/aclocal9.test
+++ b/tests/aclocal9.test
@@ -42,6 +42,8 @@ $AUTOCONF
 grep macro11 foo
 grep macro21 foo
 
+sleep 1
+
 $ACLOCAL -I m4_2 -I m4_1
 $AUTOCONF
 ./configure
diff --git a/tests/nodef.test b/tests/nodef.test
index 1a58bb7..faadfe8 100755
--- a/tests/nodef.test
+++ b/tests/nodef.test
@@ -45,6 +45,8 @@ grep 'DEFS.*-DVERSION=\\"UnIqUe' output
 
 # Then, check that PACKAGE and VERSION are not output if requested.
 
+sleep 1
+
 cat > configure.in << 'END'
 AC_INIT
 AM_INIT_AUTOMAKE([UnIqUe_PaCkAgE], [UnIqUe_VeRsIoN], [no])
-- 
1.6.4

Reply via email to