On Wed, 13 May 2015 21:01:28 +0300, Niko Tyni wrote: > As noticed by the reproducible builds project, this package fails to > build when TZ=/usr/share/zoneinfo/Etc/GMT+12 . > > # Failed test 'Example 13' > # at t/doc.t line 92. > # got: '06/06/2003' > # expected: '06/05/2003' > ok 25 - Example 14 > ok 26 - Example 15 > # Looks like you failed 1 test of 26. > Dubious, test returned 1 (wstat 256, 0x100) > Failed 1/26 subtests
Nice :) And it's not only this timezone: # for tz in /usr/share/zoneinfo/Etc/*; do echo "=== $tz =="; TZ=$tz prove -Q --blib t/doc.t; done === /usr/share/zoneinfo/Etc/GMT == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.14 cusr 0.02 csys = 0.19 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT+0 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.13 cusr 0.00 csys = 0.16 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT+1 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.13 cusr 0.00 csys = 0.15 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT+10 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.13 cusr 0.01 csys = 0.17 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT+11 == # Failed test 'Example 13' # at t/doc.t line 94. # got: '06/06/2003' # expected: '06/05/2003' # Looks like you failed 1 test of 26. Test Summary Report ------------------- t/doc.t (Wstat: 256 Tests: 26 Failed: 1) Failed test: 24 Non-zero exit status: 1 Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.16 cusr 0.01 csys = 0.20 CPU) Result: FAIL === /usr/share/zoneinfo/Etc/GMT+12 == # Failed test 'Example 13' # at t/doc.t line 94. # got: '06/06/2003' # expected: '06/05/2003' # Looks like you failed 1 test of 26. Test Summary Report ------------------- t/doc.t (Wstat: 256 Tests: 26 Failed: 1) Failed test: 24 Non-zero exit status: 1 Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.12 cusr 0.01 csys = 0.15 CPU) Result: FAIL === /usr/share/zoneinfo/Etc/GMT+2 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.12 cusr 0.01 csys = 0.16 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT+3 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.12 cusr 0.01 csys = 0.15 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT+4 == All tests successful. Files=1, Tests=26, 1 wallclock secs ( 0.02 usr 0.00 sys + 0.13 cusr 0.00 csys = 0.15 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT+5 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.20 cusr 0.00 csys = 0.23 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT+6 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.01 usr 0.02 sys + 0.14 cusr 0.00 csys = 0.17 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT+7 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.17 cusr 0.01 csys = 0.20 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT+8 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.01 usr 0.01 sys + 0.14 cusr 0.01 csys = 0.17 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT+9 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.14 cusr 0.00 csys = 0.16 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT-0 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.13 cusr 0.00 csys = 0.15 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT-1 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.12 cusr 0.02 csys = 0.16 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT-10 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.13 cusr 0.01 csys = 0.17 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT-11 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.14 cusr 0.00 csys = 0.17 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT-12 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.14 cusr 0.01 csys = 0.17 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT-13 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.12 cusr 0.02 csys = 0.16 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT-14 == # Failed test 'Example 13' # at t/doc.t line 94. # got: '06/04/2003' # expected: '06/05/2003' # Looks like you failed 1 test of 26. Test Summary Report ------------------- t/doc.t (Wstat: 256 Tests: 26 Failed: 1) Failed test: 24 Non-zero exit status: 1 Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.16 cusr 0.00 csys = 0.19 CPU) Result: FAIL === /usr/share/zoneinfo/Etc/GMT-2 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.12 cusr 0.02 csys = 0.17 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT-3 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.13 cusr 0.00 csys = 0.15 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT-4 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.16 cusr 0.01 csys = 0.20 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT-5 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.12 cusr 0.00 csys = 0.14 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT-6 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.12 cusr 0.01 csys = 0.16 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT-7 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.12 cusr 0.01 csys = 0.16 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT-8 == All tests successful. Files=1, Tests=26, 1 wallclock secs ( 0.03 usr 0.00 sys + 0.20 cusr 0.02 csys = 0.25 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT-9 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.01 sys + 0.12 cusr 0.02 csys = 0.17 CPU) Result: PASS === /usr/share/zoneinfo/Etc/GMT0 == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.13 cusr 0.00 csys = 0.15 CPU) Result: PASS === /usr/share/zoneinfo/Etc/Greenwich == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.12 cusr 0.01 csys = 0.16 CPU) Result: PASS === /usr/share/zoneinfo/Etc/UCT == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.16 cusr 0.02 csys = 0.21 CPU) Result: PASS === /usr/share/zoneinfo/Etc/UTC == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.12 cusr 0.01 csys = 0.16 CPU) Result: PASS === /usr/share/zoneinfo/Etc/Universal == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.03 usr 0.01 sys + 0.14 cusr 0.01 csys = 0.19 CPU) Result: PASS === /usr/share/zoneinfo/Etc/Zulu == All tests successful. Files=1, Tests=26, 0 wallclock secs ( 0.02 usr 0.00 sys + 0.14 cusr 0.01 csys = 0.17 CPU) Result: PASS So we have - /usr/share/zoneinfo/Etc/GMT+11 - /usr/share/zoneinfo/Etc/GMT+12 - /usr/share/zoneinfo/Etc/GMT-14 (only for the ones in /usr/share/zoneinfo/Etc/*) Nailing down the tests to one TZ looks reasonable; not sure which timezone upstream had in mind: $t = timelocal(9, 58, 13, 5, 5, 103); # June 5, 2003 at 1:58:09 pm % perl -MTime::Local -E "say timelocal(9, 58, 13, 5, 5, 103)" 1054814289 % date -d @1054864689 -u Fri Jun 6 01:58:09 UTC 2003 Just half a day off from the comment :) Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - https://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: Bruce Springsteen & The E Street Band: My Hometown
signature.asc
Description: Digital Signature