summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-12-20 17:37:32 -0800
committerKarl Berry <karl@freefriends.org>2019-12-21 18:07:22 -0800
commitc64fa5a2bdbff8874e13aa7ad179c45a5aa52f29 (patch)
tree96969054480dc601f7df654f6ff88a7c83715b90
parentc1e1dd6619faf4358ba7d6434dee95eaf6db2195 (diff)
downloadautomake-c64fa5a2bdbff8874e13aa7ad179c45a5aa52f29.tar.gz
tests: Ensure UTC for Texinfo @UPDATED@ test
* t/txinfo-vtexi4.sh: TZ=UTC0; export TZ (same as mdate-sh). * NEWS: update.
-rw-r--r--NEWS5
-rw-r--r--t/txinfo-vtexi4.sh6
2 files changed, 9 insertions, 2 deletions
diff --git a/NEWS b/NEWS
index 9bf332b06..00501ec9a 100644
--- 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:
diff --git a/t/txinfo-vtexi4.sh b/t/txinfo-vtexi4.sh
index 76533ef67..976d41e7f 100644
--- a/t/txinfo-vtexi4.sh
+++ b/t/txinfo-vtexi4.sh
@@ -17,13 +17,17 @@
# 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" \