]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: Ensure UTC for Texinfo @UPDATED@ test
authorKarl Berry <karl@freefriends.org>
Sat, 21 Dec 2019 01:37:32 +0000 (17:37 -0800)
committerKarl Berry <karl@freefriends.org>
Sun, 22 Dec 2019 02:07:22 +0000 (18:07 -0800)
* t/txinfo-vtexi4.sh: TZ=UTC0; export TZ (same as mdate-sh).
* NEWS: update.

NEWS
t/txinfo-vtexi4.sh

diff --git a/NEWS b/NEWS
index 9bf332b0678a9608c65ceaa735035d78462e4b37..00501ec9a54db958d9aa9170d636dc49dc90718a 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -79,11 +79,14 @@ New in ?.?.?:
     compatibility with the 'sed' implementation provided by macOS which
     considers '\n' as the 'n' character instead of a newline.
     (automake bug#31222)
-  
+
   - For make tags, lisp_LISP is followed by the necessary space when
     used with CONFIG_HEADERS.
     (automake bug#38139)
 
+  - The automake test txinfo-vtexi4.sh no longer fails when localtime
+    and UTC cross a day boundary.
+
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 New in 1.16.1:
index 76533ef671bf4bfe8645bc5273d3f606669b3f05..976d41e7ff296aecd657567eaa89d576fd60c9c8 100644 (file)
 # Check that the version.texi file is automatically created and distributed
 # if @included into a texi source.  Also check that is correctly defined
 # @values definitions it is advertised to.
-# See also the related test 'txinfo-vtexi4.sh', which does similar checks,
+# See also the related test 'txinfo-vtexi3.sh', which does similar checks,
 # but for more vers*.texi files, and does not require makeinfo, tex and
 # texi2dvi.
 
 required='makeinfo tex texi2dvi grep-nonprint'
 . test-init.sh
 
+# We must use UTC since mdate-sh does, else the UPDATED values might
+# differ depending on local time.
+TZ=UTC0; export TZ
+
 test $(LC_ALL=C date '+%u') -gt 0 && test $(LC_ALL=C date '+%u') -lt 8 \
   && day=$(LC_ALL=C date '+%d')   && test -n "$day" \
   && month=$(LC_ALL=C date '+%B') && test -n "$month" \