Skip Menu |
 

This queue is for tickets about the Rose-DateTime CPAN distribution.

Report information
The Basics
Id: 67919
Status: resolved
Priority: 0/
Queue: Rose-DateTime

People
Owner: Nobody in particular
Requestors: s.schoeling [...] linet-services.de
Cc:
AdminCc:

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



Subject: DateTime 0.67 && 0.68 nanosecond handling breaks parse_date tests.
Date: Tue, 03 May 2011 14:07:09 +0200
To: bug-Rose-DateTime [...] rt.cpan.org
From: Sven Schöling <s.schoeling [...] linet-services.de>
Download (untitled) / with headers
text/plain 1.6k
~/.cpan/build/Rose-DateTime-0.535-j5mJuQ$ make test PERL_DL_NONLAZY=1 /tmp/bin/perl5.12.3 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/basic.t ... 3205/5527 # Failed test 'Epoch vs. yyyymmdd 4' # at t/basic.t line 482. # got: '2006-03-30 18:47:15.12346' # expected: '2006-03-30 18:47:15.12345' # Failed test 'Epoch vs. yyyymmdd 6' # at t/basic.t line 488. # got: '2006-03-30 18:47:15.0' # expected: '2006-03-30 18:47:15.00000' # Looks like you failed 2 tests of 5527. t/basic.t ... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/5527 subtests t/locale.t .. ok t/parser.t .. ok t/pod.t ..... skipped: Test::Pod 1.00 required for testing POD Test Summary Report ------------------- t/basic.t (Wstat: 512 Tests: 5527 Failed: 2) Failed tests: 5516, 5518 Non-zero exit status: 2 Files=4, Tests=5547, 3 wallclock secs ( 1.16 usr 0.06 sys + 2.60 cusr 0.14 csys = 3.96 CPU) Result: FAIL Failed 1/4 test programs. 2/5547 subtests failed. make: *** [test_dynamic] Error 255 The tests in question are: $d = parse_date('1143744435.123456789'); is($d->strftime('%Y-%m-%d %H:%M:%S.%5N'), '2006-03-30 18:47:15.12345', 'Epoch vs. yyyymmdd 4'); $d = parse_date('1143744435.'); is($d->strftime('%Y-%m-%d %H:%M:%S.%5N'), '2006-03-30 18:47:15.00000', 'Epoch vs. yyyymmdd 6'); The first looks like an intentional change in DateTime 0.67, the second one... no idea. System: perl -v: This is perl 5, version 12, subversion 3 (v5.12.3) built for x86_64-linux-multi uname -a: Linux ls-bs-ws15 2.6.31.1 #1 SMP Fri Oct 2 13:05:50 CEST 2009 x86_64 GNU/Linux DateTime: 0.68
This should be fixed in 0.565, just uploaded to CPAN.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.