Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the DateTime CPAN distribution.

Report information
The Basics
Id: 16487
Status: resolved
Priority: 0/
Queue: DateTime

People
Owner: Nobody in particular
Requestors: carbon [...] pobox.com
slanning [...] cpan.org
tak [...] thorie.com
Cc:
AdminCc:

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



Subject: Test fails during DateTime install
This is perl, v5.6.1 built for i386-linux perl -MCPAN -e shell Show quoted text
> install DateTime
Running make for D/DR/DROLSKY/DateTime-0.2901.tar.gz ... t/16truncate............ok t/17set_return..........Argument "1882-10-21T22:04:33" isn't numeric in numeric eq (==) at blib/lib/DateTime.pm line 1390. t/17set_return..........NOK 1 # Failed test 'set() returns self' # in t/17set_return.t at line 20. # got: '1882-10-21T22:04:33' # expected: '1882-10-21T22:04:33' Argument "1882-10-22T08:09:25" isn't numeric in numeric eq (==) at blib/lib/DateTime.pm line 1390. t/17set_return..........NOK 2 # Failed test 'set_time_zone() returns self' # in t/17set_return.t at line 23. # got: '1882-10-22T08:09:25' # expected: '1882-10-22T08:09:25' t/17set_return..........ok 3/7# Looks like you failed 2 tests of 7. t/17set_return..........dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-2 Failed 2/7 tests, 71.43% okay t/18today...............ok t/19leap_second.........ok t/20infinite............NOK 17 # Failed test 'infinity (datetime) == infinity (number)' # in t/20infinite.t at line 72. # got: '-0001--01--01T-01:-01:-01' # expected: 'inf' t/20infinite............NOK 18 # Failed test 'neg infinity (datetime) == neg infinity (number)' # in t/20infinite.t at line 75. # got: '-2147483648--2147483648--2147483648T-2147483648:-2147483648:-2147483648' # expected: '-inf' # Looks like you failed 2 tests of 40. t/20infinite............dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 17-18 Failed 2/40 tests, 95.00% okay t/21bad_params..........ok ... Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/17set_return.t 2 512 7 2 28.57% 1-2 t/20infinite.t 2 512 40 2 5.00% 17-18 1 test and 7 subtests skipped. Failed 2/36 test scripts, 94.44% okay. 4/2936 subtests failed, 99.86% okay. make: *** [test_dynamic] Error 11 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force # uname -a Linux debian 2.2.20-idepci #1 Sat Apr 20 12:45:19 EST 2002 i686 unknown running debian/stable
Subject: two tests in 20infinite.t fail on Debian 3.1 (Sarge)
When running tests for version 0.2901, these fail: t/20infinite............1..40 [...] not ok 17 - infinity (datetime) == infinity (number) # Failed test 'infinity (datetime) == infinity (number)' # in t/20infinite.t at line 72. # got: '-0001--01--01T-01:-01:-01' # expected: 'inf' not ok 18 - neg infinity (datetime) == neg infinity (number) # Failed test 'neg infinity (datetime) == neg infinity (number)' # in t/20infinite.t at line 75. # got: '-2147483648--2147483648--2147483648T-2147483648:-2147483648:-2147483648' # expected: '-inf' [...]
From: slanning [...] cpan.org
I don't know why, but after I downgraded Test::More to 0.60 (to allow Test::Class 0.11 to install), DateTime now passes its tests.
From: ronan [...] roasp.com
[guest - Fri Oct 21 19:38:55 2005]: Show quoted text
> This is perl, v5.6.1 built for i386-linux > perl -MCPAN -e shell
> > install DateTime
> Running make for D/DR/DROLSKY/DateTime-0.2901.tar.gz > > ... > > t/16truncate............ok > t/17set_return..........Argument "1882-10-21T22:04:33" isn't numeric > in numeric > eq (==) at blib/lib/DateTime.pm line 1390. > t/17set_return..........NOK 1 > # Failed test 'set() returns self' > # in t/17set_return.t at line 20. > # got: '1882-10-21T22:04:33' > # expected: '1882-10-21T22:04:33' > Argument "1882-10-22T08:09:25" isn't numeric in numeric eq (==) at > blib/lib/DateTime.pm line 1390. > t/17set_return..........NOK 2 > # Failed test 'set_time_zone() returns self' > # in t/17set_return.t at line 23. > # got: '1882-10-22T08:09:25' > # expected: '1882-10-22T08:09:25' > t/17set_return..........ok 3/7# Looks like you failed 2 tests of 7. > t/17set_return..........dubious > Test returned status 2 (wstat 512, 0x200) > DIED. FAILED tests 1-2 > Failed 2/7 tests, 71.43% okay > t/18today...............ok > t/19leap_second.........ok > t/20infinite............NOK 17 > # Failed test 'infinity (datetime) == infinity (number)' > # in t/20infinite.t at line 72. > # got: '-0001--01--01T-01:-01:-01' > # expected: 'inf' > t/20infinite............NOK 18 > # Failed test 'neg infinity (datetime) == neg infinity (number)' > # in t/20infinite.t at line 75. > # got: '-2147483648--2147483648--2147483648T-2147483648:- > 2147483648:-2147483648' > # expected: '-inf' > # Looks like you failed 2 tests of 40. > t/20infinite............dubious > Test returned status 2 (wstat 512, 0x200) > DIED. FAILED tests 17-18 > Failed 2/40 tests, 95.00% okay > t/21bad_params..........ok > > ... > > Failed Test Stat Wstat Total Fail Failed List of Failed >
------------------------------------------------------------------------------- Show quoted text
> t/17set_return.t 2 512 7 2 28.57% 1-2 > t/20infinite.t 2 512 40 2 5.00% 17-18 > 1 test and 7 subtests skipped. > Failed 2/36 test scripts, 94.44% okay. 4/2936 subtests failed, 99.86% > okay. > make: *** [test_dynamic] Error 11 > /usr/bin/make test -- NOT OK > Running make install > make test had returned bad status, won't install without force > > # uname -a > Linux debian 2.2.20-idepci #1 Sat Apr 20 12:45:19 EST 2002 i686 > unknown > > running debian/stable >
Download datetime.err
application/octet-stream 3.3k

Message body not shown because it is not plain text.

From: ronan [...] roasp.com

Message body is not shown because it is too large.

Download datetime.err
application/octet-stream 3.3k

Message body not shown because it is not plain text.

From: ronan [...] roasp.com

Message body is not shown because it is too large.

Download datetime.err
application/octet-stream 3.3k

Message body not shown because it is not plain text.

I get this as well with DateTime-0.2901.tar.gz t/20infinite............NOK 17 # Failed test 'infinity (datetime) == infinity (number)' # in t/20infinite.t at line 72. # got: '-0001--01--01T-01:-01:-01' # expected: 'inf' t/20infinite............NOK 18 # Failed test 'neg infinity (datetime) == neg infinity (number)' # in t/20infinite.t at line 75. # got: '-2147483648--2147483648--2147483648T-2147483648:-2147483648:-2147483648' # expected: '-inf' # Looks like you failed 2 tests of 40. t/20infinite............dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 17-18 Failed 2/40 tests, 95.00% okay Summary of my perl5 (revision 5 version 8 subversion 7) configuration: Platform: osname=linux, osvers=2.6.14-rc4, archname=i486-linux-gnu-thread-multi uname='linux ninsei 2.6.14-rc4 #1 smp preempt tue oct 11 20:35:48 pdt 2005 i686 gnulinux ' config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i486-linux-gnu -Dprefix=/usr -Dprivlib=/usr/share/perl/5.8 -Darchlib=/usr/lib/perl/5.8 -Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5 -Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local -Dsitelib=/usr/local/share/perl/5.8.7 -Dsitearch=/usr/local/lib/perl/5.8.7 -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl -Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Uusesfio -Uusenm -Duseshrplib -Dlibperl=libperl.so.5.8.7 -Dd_dosuid -des' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef useithreads=define usemultiplicity=define useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O2', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include' ccversion='', gccversion='4.0.2 (Debian 4.0.2-2)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt perllibs=-ldl -lm -lpthread -lc -lcrypt libc=/lib/libc-2.3.5.so, so=so, useshrplib=true, libperl=libperl.so.5.8.7 gnulibc_version='2.3.5' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E' cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Oct 17 2005 15:55:55 @INC: /etc/perl /usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/local/lib/perl/5.8.3 /usr/local/share/perl/5.8.3 /usr/local/lib/perl/5.8.2 [SLANNING - Sun Oct 23 16:02:47 2005]: Show quoted text
> When running tests for version 0.2901, these fail: > > t/20infinite............1..40 > [...] > not ok 17 - infinity (datetime) == infinity (number) > > # Failed test 'infinity (datetime) == infinity (number)' > # in t/20infinite.t at line 72. > # got: '-0001--01--01T-01:-01:-01' > # expected: 'inf' > not ok 18 - neg infinity (datetime) == neg infinity (number) > > # Failed test 'neg infinity (datetime) == neg infinity (number)' > # in t/20infinite.t at line 75. > # got: > '-2147483648--2147483648--2147483648T-2147483648:-2147483648:- > 2147483648' > # expected: '-inf' > [...]
Date: Thu, 1 Dec 2005 09:42:59 -0600 (CST)
From: Dave Rolsky <autarch [...] urth.org>
To: Guest via RT <bug-DateTime [...] rt.cpan.org>
Subject: Re: [cpan #15250] two tests in 20infinite.t fail on Debian 3.1 (Sarge)
RT-Send-Cc:
On Thu, 1 Dec 2005, Guest via RT wrote: Show quoted text
> I get this as well with DateTime-0.2901.tar.gz > > t/20infinite............NOK 17 > # Failed test 'infinity (datetime) == infinity (number)' > # in t/20infinite.t at line 72. > # got: '-0001--01--01T-01:-01:-01' > # expected: 'inf' > t/20infinite............NOK 18 > # Failed test 'neg infinity (datetime) == neg infinity (number)' > # in t/20infinite.t at line 75. > # got: > '-2147483648--2147483648--2147483648T-2147483648:-2147483648:-2147483648' > # expected: '-inf' > # Looks like you failed 2 tests of 40. > t/20infinite............dubious > Test returned status 2 (wstat 512, 0x200) > DIED. FAILED tests 17-18 > Failed 2/40 tests, 95.00% okay
This may (I hope) be fixed in the next release. -dave /*=================================================== VegGuide.Org www.BookIRead.com Your guide to all that's veg. My book blog ===================================================*/
Subject: test t20infinite.t failed on OpenBSD 3.8
Distribution name and version: DateTime-0.2901 Perl version: v5.8.6 built for i386-openbsd Operating System vendor and version: OpenBSD 3.8 GENERIC#138 i386 Here is the test output: t/20infinite............NOK 17 # Failed test 'infinity (datetime) == infinity (number)' # in t/20infinite.t at line 72. # got: '-0001--01--01T-01:-01:-01' # expected: 'Inf' t/20infinite............NOK 18 # Failed test 'neg infinity (datetime) == neg infinity (number)' # in t/20infinite.t at line 75. # got: '-2147483648--2147483648--2147483648T-2147483648:-2147483648:-2147483648' # expected: '-Inf' t/20infinite............ok 32/40# Looks like you failed 2 tests of 40. t/20infinite............dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 17-18 Failed 2/40 tests, 95.00% okay I have not had any issues with this test on my Mac OS X 10.4 box. Let me know if there is any more info on this issue you might need.