coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

tests/misc/date-debug: fails with latest timezone


From: Bernhard Voelker
Subject: tests/misc/date-debug: fails with latest timezone
Date: Fri, 10 Mar 2017 02:26:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

I'm seeing this failure on the openSUSE build server:

[  513s] FAIL: tests/misc/date-debug
[  513s] ===========================
...
[  513s] + TZ=America/Lima
[  513s] + date --debug -d @1
[  513s] + compare exp3 out3
[  513s] + compare_dev_null_ exp3 out3
[  513s] + test 2 = 2
[  513s] + test xexp3 = x/dev/null
[  513s] + test xout3 = x/dev/null
[  513s] + return 2
[  513s] + case $? in
[  513s] + compare_ exp3 out3
[  513s] + diff -u exp3 out3
[  513s] --- exp3       2017-03-10 00:17:23.843634722 +0000
[  513s] +++ out3       2017-03-10 00:17:23.847634722 +0000
[  513s] @@ -4,4 +4,4 @@
[  513s]  date: final: 1.000000000 (epoch-seconds)
[  513s]  date: final: (Y-M-D) 1970-01-01 00:00:01 (UTC0)
[  513s]  date: final: (Y-M-D) 1969-12-31 19:00:01 (output timezone TZ=-05:00)
[  513s] -Wed Dec 31 19:00:01 PET 1969
[  513s] +Wed Dec 31 19:00:01 -05 1969
[  513s] + fail=1

This is due to changing the timezone abbreviations of South America
to numerical format [1] in brand new 'timezone-2017a':

  https://github.com/eggert/tz/commit/c9e6ef07cc

It seems we cannot rely on the timezone abbreviations any longer
in our tests.  For now, I suggest to work around the current
FP for the "America/Lima" test.

WDYT?

Have a nice day,
Berny

Attachment: 0001-tests-avoid-FP-of-date-debug.sh-with-newer-timezone-.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]