]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: fix an ltdl dryrun race condition.
authorPavel Raiskup <praiskup@redhat.com>
Tue, 20 Jan 2015 15:25:48 +0000 (15:25 +0000)
committerGary V. Vaughan <gary@gnu.org>
Tue, 20 Jan 2015 15:25:48 +0000 (15:25 +0000)
* 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>
NEWS
tests/testsuite.at

diff --git a/NEWS b/NEWS
index a1484852713ed81733c7c597812cdb7d6f176258..c58dd9bdd7150bae92c561d9ea953ed69ba56501 100644 (file)
--- 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]
 
index 735cb96e2b781e2393100a7a0dd136eaf3c0f7a8..04e41bd71f380fa97682ffbf76f3457798a2ca51 100644 (file)
@@ -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])
 ])