Skip Menu |

This queue is for tickets about the Date-PeriodParser CPAN distribution.

Report information
The Basics
Id: 83299
Status: open
Priority: 0/
Queue: Date-PeriodParser

People
Owner: Nobody in particular
Requestors: javi.merino [...] arm.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: "ago" tests fail
Date: Wed, 13 Feb 2013 10:58:12 +0000
To: bug-Date-PeriodParser [...] rt.cpan.org
From: Javi Merino <javi.merino [...] arm.com>
8 tests in 06ago.t fail in Date-PeriodParser-0.17: $ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/ar ch')" t/*.t t/01now.t ......... ok t/02recent.t ...... ok t/03sometime.t .... ok t/04leeway.t ...... ok t/05point.t ....... ok t/06ago.t ......... 1/24 # Failed test at t/06ago.t line 56. # got: 'Sat Mar 10 00:00:00 2840' # expected: 'Fri Mar 9 00:00:00 2840' # Failed test at t/06ago.t line 57. # got: 'Sat Mar 10 23:59:59 2840' # expected: 'Fri Mar 9 23:59:59 2840' # Failed test at t/06ago.t line 56. # got: 'Thu Jan 3 00:00:00 2002' # expected: 'Wed Jan 2 00:00:00 2002' # Failed test at t/06ago.t line 57. # got: 'Thu Jan 3 23:59:59 2002' # expected: 'Wed Jan 2 23:59:59 2002' # Failed test at t/06ago.t line 56. # got: 'Sat May 25 00:00:00 2002' # expected: 'Fri May 24 00:00:00 2002' # Failed test at t/06ago.t line 57. # got: 'Sat May 25 23:59:59 2002' # expected: 'Fri May 24 23:59:59 2002' # Failed test at t/06ago.t line 56. # got: 'Mon Oct 21 00:00:00 1996' # expected: 'Sun Oct 20 00:00:00 1996' # Failed test at t/06ago.t line 57. # got: 'Mon Oct 21 23:59:59 1996' # expected: 'Sun Oct 20 23:59:59 1996' # Looks like you failed 8 tests of 24. t/06ago.t ......... Dubious, test returned 8 (wstat 2048, 0x800) Failed 8/24 subtests t/07junk.t ........ ok t/08now.t ......... ok t/09vague.t ....... # Base time is considered to be daylight savings # Time zone on this machine is GMT t/09vague.t ....... ok t/10zones.t ....... ok t/month-year.t .... ok t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.04 required for testing POD coverage t/pod.t ........... skipped: Test::Pod 1.14 required for testing POD t/this-month.t .... ok t/02recent.t ...... ok t/03sometime.t .... ok t/04leeway.t ...... ok t/05point.t ....... ok t/06ago.t ......... 1/24 # Failed test at t/06ago.t line 56. # got: 'Sat Mar 10 00:00:00 2840' # expected: 'Fri Mar 9 00:00:00 2840' # Failed test at t/06ago.t line 57. # got: 'Sat Mar 10 23:59:59 2840' # expected: 'Fri Mar 9 23:59:59 2840' # Failed test at t/06ago.t line 56. # got: 'Thu Jan 3 00:00:00 2002' # expected: 'Wed Jan 2 00:00:00 2002' # Failed test at t/06ago.t line 57. # got: 'Thu Jan 3 23:59:59 2002' # expected: 'Wed Jan 2 23:59:59 2002' # Failed test at t/06ago.t line 56. # got: 'Sat May 25 00:00:00 2002' # expected: 'Fri May 24 00:00:00 2002' # Failed test at t/06ago.t line 57. # got: 'Sat May 25 23:59:59 2002' # expected: 'Fri May 24 23:59:59 2002' # Failed test at t/06ago.t line 56. # got: 'Mon Oct 21 00:00:00 1996' # expected: 'Sun Oct 20 00:00:00 1996' # Failed test at t/06ago.t line 57. # got: 'Mon Oct 21 23:59:59 1996' # expected: 'Sun Oct 20 23:59:59 1996' # Looks like you failed 8 tests of 24. t/06ago.t ......... Dubious, test returned 8 (wstat 2048, 0x800) Failed 8/24 subtests t/07junk.t ........ ok t/08now.t ......... ok t/09vague.t ....... # Base time is considered to be daylight savings # Time zone on this machine is GMT t/09vague.t ....... ok t/10zones.t ....... ok t/month-year.t .... ok t/pod-coverage.t .. skipped: Test::Pod::Coverage 1.04 required for testing POD coverage t/pod.t ........... skipped: Test::Pod 1.14 required for testing POD t/this-month.t .... ok t/this-week.t ..... ok Test Summary Report ------------------- t/06ago.t (Wstat: 2048 Tests: 24 Failed: 8) Failed tests: 1-2, 5-6, 11-12, 21-22 Non-zero exit status: 8 Files=15, Tests=370, 1 wallclock secs ( 0.06 usr 0.04 sys + 0.54 cusr 0.08 csys = 0.72 CPU) Result: FAIL Failed 1/15 test programs. 8/370 subtests failed. make: *** [test_dynamic] Error 255
These tests are overly pedantic for a module only meant to approximate date ranges. I suspect timezone issues; I'm in the process of converting this to DateTime for more dependable math, but this test also needs a revamp to allow more slop.