diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2015-01-20 15:25:48 +0000 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2015-01-20 15:25:48 +0000 |
commit | 3deca86bdcc4a2af35308166543fb3ca395419a6 (patch) | |
tree | fbcec183c34cb2ffa3718adac41bbbed0d902ef1 /tests | |
parent | 8cb6741f5ce38556e9d714e7a38c0b04daba36a4 (diff) | |
download | libtool-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.at | 5 |
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]) ]) |