summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2015-01-20 15:25:48 +0000
committerGary V. Vaughan <gary@gnu.org>2015-01-20 15:25:48 +0000
commit3deca86bdcc4a2af35308166543fb3ca395419a6 (patch)
treefbcec183c34cb2ffa3718adac41bbbed0d902ef1 /tests
parent8cb6741f5ce38556e9d714e7a38c0b04daba36a4 (diff)
downloadlibtool-3deca86bdcc4a2af35308166543fb3ca395419a6.tar.gz
tests: fix an ltdl dryrun race condition.
* tests/testsuite.at (LT_AT_ACLOCAL): Inject a 1 second sleep after aclocal to ensure subsequently generated autotools files will be newer. * NEWS: Update. Signed-off-by: Gary V. Vaughan <gary@gnu.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/testsuite.at5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/testsuite.at b/tests/testsuite.at
index 735cb96e..04e41bd7 100644
--- a/tests/testsuite.at
+++ b/tests/testsuite.at
@@ -123,6 +123,11 @@ AT_DATA([acinclude.m4],
[m4_define([AC_CONFIG_MACRO_DIRS], m4_defn([AC_CONFIG_MACRO_DIR]))])
]])
LT_AT_CHECK([$ACLOCAL $1$macro_dir], [0], [ignore], [ignore])
+# After the 'aclocal' run sleep 1 second to guarantee that aclocal.m4 is going
+# to have older timestamp than other autotools later-generated files (concretely
+# for libtool case, we speak about config.h.in generated autoheader).
+# Autoreconf does the same (after the first aclocal run).
+sleep 1
AT_XFAIL_IF([test no = "$ACLOCAL"])
AT_KEYWORDS([automake])
])