On 2015-02-28 10:22:53, SREZIC wrote:
Show quoted text> Looking at
http://matrix.cpantesters.org/?dist=DateTimeX-Format-
> Ago%200.005;reports=1#sl=7,1 it seems that tests are failing every
> last day of month: it is failing today (2015-02-28), it happened in
> the past also on 2014-11-30 and 2014-09-30, but not on 2014-10-31,
> which spoils the theory somewhat.
A systematic test for all days in 2014 for one of the failing test scripts:
$ perl -MIPC::Run=run -MTime::Local -e '$t=timelocal(0,0,0,1,1-0,2014); for (1..365) { $result = run [$^X, "-MTime::Fake=$t", "-Mblib", "t/02roundtrip-natural.t"], ">", "/dev/null", "2>", \$error; if (!$result) { print STDERR scalar(localtime $t) . " $error\n"; } $t+=86400 }'
Fri Feb 28 00:00:00 2014 # Failed test 'Roundtrip for '3 months ago''
# at t/02roundtrip-natural.t line 37.
# got: '2 months ago'
# expected: '3 months ago'
# Looks like you failed 1 test of 13.
Wed Apr 30 00:00:00 2014 # Failed test 'Roundtrip for '3 months ago''
# at t/02roundtrip-natural.t line 37.
# got: '2 months ago'
# expected: '3 months ago'
# Looks like you failed 1 test of 13.
Mon Jun 30 00:00:00 2014 # Failed test 'Roundtrip for '3 months ago''
# at t/02roundtrip-natural.t line 37.
# got: '2 months ago'
# expected: '3 months ago'
# Looks like you failed 1 test of 13.
Sun Nov 30 00:00:00 2014 # Failed test 'Roundtrip for '3 months ago''
# at t/02roundtrip-natural.t line 37.
# got: '2 months ago'
# expected: '3 months ago'
# Looks like you failed 1 test of 13.