From: Pavel Raiskup Date: Tue, 20 Jan 2015 15:25:48 +0000 (+0000) Subject: tests: fix an ltdl dryrun race condition. X-Git-Tag: v2.4.6~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3deca86bdcc4a2af35308166543fb3ca395419a6;p=thirdparty%2Flibtool.git 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 --- diff --git a/NEWS b/NEWS index a14848527..c58dd9bdd 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,11 @@ NEWS - list of user-visible changes between releases of GNU Libtool * Noteworthy changes in release ?.? (????-??-??) [?] +** Bug fixes: + + - Fix a race condition in ltdl dryrun test that would cause spurious + random failures of that test. + * Noteworthy changes in release 2.4.5 (2015-01-19) [stable] diff --git a/tests/testsuite.at b/tests/testsuite.at index 735cb96e2..04e41bd71 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]) ])