Skip Menu |

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

Report information
The Basics
Id: 6599
Status: resolved
Priority: 0/
Queue: Date-PeriodParser

People
Owner: mcmahon [...] cpan.org
Requestors: jm-rt [...] jmason.org
Cc:
AdminCc:

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



Subject: 'make test' fails tests 3-14
: jm 30...; make clean ; perl Makefile.PL ; make ; make test rm -rf ./blib Makefile.aperl blib/arch/auto/Date/PeriodParser/extralibs.all blib/arch/auto/Date/PeriodParser/extralibs.ld perlmain.c tmon.out mon.out so_locations pm_to_blib *.o *.a perl.exe perl perl PeriodParser.bso PeriodParser.def libPeriodParser.def PeriodParser.exp PeriodParser.x core core.*perl.*.? *perl.core core.[0-9] core.[0-9][0-9] core.[0-9][0-9][0-9] core.[0-9][0-9][0-9][0-9] core.[0-9][0-9][0-9][0-9][0-9] mv Makefile Makefile.old > /dev/null 2>&1 Checking if your kit is complete... Looks good Writing Makefile for Date::PeriodParser cp PeriodParser.pm blib/lib/Date/PeriodParser.pm Manifying blib/man3/Date::PeriodParser.3pm PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl 1..14 # Running under perl version 5.008003 for linux # Current time local: Fri Jun 11 13:27:51 2004 # Current time GMT: Fri Jun 11 20:27:51 2004 # Using Test.pm version 1.24 ok 1 ok 2 (1018584000, 1018616400) != (1018555200, 1018587600) Saw from Thu Apr 11 21:00:00 2002, expected Thu Apr 11 13:00:00 2002 for last night Saw to Fri Apr 12 06:00:00 2002, expected Thu Apr 11 22:00:00 2002 for last night not ok 3 # Failed test 3 in test.pl at line 46 # test.pl line 46 is: ok(0); (1018414800, 1018472400) != (1018386000, 1018443600) Saw from Tue Apr 9 22:00:00 2002, expected Tue Apr 9 14:00:00 2002 for around the morning of the day before yesterday Saw to Wed Apr 10 14:00:00 2002, expected Wed Apr 10 06:00:00 2002 for around the morning of the day before yesterday not ok 4 # Failed test 4 in test.pl at line 46 fail #2 (1018508400, 1018551600) != (1018479600, 1018522800) Saw from Thu Apr 11 00:00:00 2002, expected Wed Apr 10 16:00:00 2002 for yesterday morning Saw to Thu Apr 11 12:00:00 2002, expected Thu Apr 11 04:00:00 2002 for yesterday morning not ok 5 # Failed test 5 in test.pl at line 46 fail #3 (1017518400, 1017863999) != (1017486000, 1017831599) Saw from Sat Mar 30 12:00:00 2002, expected Sat Mar 30 03:00:00 2002 for roughly eleven days ago Saw to Wed Apr 3 11:59:59 2002, expected Wed Apr 3 02:59:59 2002 for roughly eleven days ago not ok 6 # Failed test 6 in test.pl at line 46 fail #4 (1018670400, 1018702800) != (1018641600, 1018674000) Saw from Fri Apr 12 21:00:00 2002, expected Fri Apr 12 13:00:00 2002 for tonight Saw to Sat Apr 13 06:00:00 2002, expected Fri Apr 12 22:00:00 2002 for tonight not ok 7 # Failed test 7 in test.pl at line 46 fail #5 (1018746000, 1018767599) != (1018717200, 1018738799) Saw from Sat Apr 13 18:00:00 2002, expected Sat Apr 13 10:00:00 2002 for tomorrow evening Saw to Sat Apr 13 23:59:59 2002, expected Sat Apr 13 15:59:59 2002 for tomorrow evening not ok 8 # Failed test 8 in test.pl at line 46 fail #6 (1018549800, 1018580400) != (1018521000, 1018551600) Saw from Thu Apr 11 11:30:00 2002, expected Thu Apr 11 03:30:00 2002 for roughly yesterday afternoon Saw to Thu Apr 11 20:00:00 2002, expected Thu Apr 11 12:00:00 2002 for roughly yesterday afternoon not ok 9 # Failed test 9 in test.pl at line 46 fail #7 (1018594800, 1018681199) != (1018566000, 1018652399) Saw from Fri Apr 12 00:00:00 2002, expected Thu Apr 11 16:00:00 2002 for today Saw to Fri Apr 12 23:59:59 2002, expected Fri Apr 12 15:59:59 2002 for today not ok 10 # Failed test 10 in test.pl at line 46 fail #8 (1018643400, 1018659600) != (1018614600, 1018630800) Saw from Fri Apr 12 13:30:00 2002, expected Fri Apr 12 05:30:00 2002 for this afternoon Saw to Fri Apr 12 18:00:00 2002, expected Fri Apr 12 10:00:00 2002 for this afternoon not ok 11 # Failed test 11 in test.pl at line 46 fail #9 (1018249200, 1018335599) != (1018220400, 1018306799) Saw from Mon Apr 8 00:00:00 2002, expected Sun Apr 7 16:00:00 2002 for 4 days ago Saw to Mon Apr 8 23:59:59 2002, expected Mon Apr 8 15:59:59 2002 for 4 days ago not ok 12 # Failed test 12 in test.pl at line 46 fail #10 (1018508400, 1018594799) != (1018479600, 1018565999) Saw from Thu Apr 11 00:00:00 2002, expected Wed Apr 10 16:00:00 2002 for yesterday Saw to Thu Apr 11 23:59:59 2002, expected Thu Apr 11 15:59:59 2002 for yesterday not ok 13 # Failed test 13 in test.pl at line 46 fail #11 (1018422000, 1018508399) != (1018393200, 1018479599) Saw from Wed Apr 10 00:00:00 2002, expected Tue Apr 9 16:00:00 2002 for the day before yesterday Saw to Wed Apr 10 23:59:59 2002, expected Wed Apr 10 15:59:59 2002 for the day before yesterday not ok 14 # Failed test 14 in test.pl at line 46 fail #12 : exit=0 Fri Jun 11 13:27:51 PDT 2004; cd /home/jm/.cpan/build/Date-PeriodParser-0.02 : jm 31...; uname -a Linux radish.jmason.org 2.6.6 #1 Mon May 24 22:58:47 PDT 2004 i686 GNU/Linux : exit=0 Fri Jun 11 13:28:09 PDT 2004; cd /home/jm/.cpan/build/Date-PeriodParser-0.02 : jm 32...; perl -V Summary of my perl5 (revision 5.0 version 8 subversion 3) configuration: Platform: osname=linux, osvers=2.4.25-ti1211, archname=i386-linux-thread-multi uname='linux kosh 2.4.25-ti1211 #1 thu feb 19 18:20:12 est 2004 i686 gnulinux ' config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN -Dcccdlflags=-fPIC -Darchname=i386-linux -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.3 -Dsitearch=/usr/local/lib/perl/5.8.3 -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.3 -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 -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64', optimize='-O3', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='3.3.3 (Debian 20040314)', 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.2.so, so=so, useshrplib=true, libperl=libperl.so.5.8.3 gnulibc_version='2.3.2' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' 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 Mar 27 2004 16:21:10 @INC: /etc/perl /usr/local/lib/perl/5.8.3 /usr/local/share/perl/5.8.3 /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.2 /usr/local/share/perl/5.8.2 . : exit=0 Fri Jun 11 13:28:25 PDT 2004; cd /home/jm/.cpan/build/Date-PeriodParser-0.02 : jm 33...;
The test suite has been completely reworked and Date::PeriodParser now at least works. I am in the process of converting it to use Date::Calc for its date calculations, which should make it even more dependable.