Skip Menu |

This queue is for tickets about the WWW-UsePerl-Journal CPAN distribution.

Report information
The Basics
Id: 1759
Status: resolved
Priority: 0/
Queue: WWW-UsePerl-Journal

People
Owner: pause-spam [...] russell.matbouli.org
Requestors: root [...] ouroboros.anu.edu.au
Cc:
AdminCc:

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



Date: Mon, 4 Nov 2002 11:29:29 +1100
From: root <root [...] ouroboros.anu.edu.au>
To: cpan-testers [...] perl.org
Subject: FAIL WWW-UsePerl-Journal-0.10 i686-linux 2.4.18-3
Cc: bug-www-useperl-journal [...] rt.cpan.org
This distribution has been tested as part of the cpan-testers effort to test as many new uploads to CPAN as possible. See http://testers.cpan.org/ Please cc any replies to cpan-testers@perl.org to keep other test volunteers informed and to prevent any duplicate effort. -- PERL_DL_NONLAZY=1 /opt/perl/5.8.0/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/01test......1..11 ok 1 - use WWW::UsePerl::Journal; ok 2 - The object isa WWW::UsePerl::Journal ok 3 - uid ok 4 - entryhash ok 5 - entryids ok 6 - entrytitles ok 7 - entry ok 8 - entrytitled ok 9 - username from uid ok 10 - entryhash doesn't die on titles with trailing newlines ok 11 - ...and has found some entries ok t/02search....1..5 ok 1 - use WWW::UsePerl::Journal; ok 2 - The object isa WWW::UsePerl::Journal ok 3 - uid ok 4 - recentarray ok 5 - ...consistency check ok t/03date......1..6 ok 1 - use WWW::UsePerl::Journal; ok 2 - The object isa WWW::UsePerl::Journal ok 3 - The object isa WWW::UsePerl::Journal::Entry Thu Sep 26 07:47:00 2002 at t/03date.t line 16. Thu Sep 26 08:47:00 2002 at t/03date.t line 17. # Failed test (t/03date.t at line 19) # got: '1033026420' # expected: '1033030020' not ok 4 - Date matches. # Failed test (t/03date.t at line 25) # got: '1014637200' # expected: '1014597600' # Looks like you failed 2 tests of 6. ok 5 - date() doesn't die on entries posted between noon and 1pm not ok 6 - ...and gives the right date dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 4, 6 Failed 2/6 tests, 66.67% okay Failed 1/3 test scripts, 66.67% okay. 2/22 subtests failed, 90.91% okay. Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/03date.t 2 512 6 2 33.33% 4 6 make: *** [test_dynamic] Error 2 # I suspect it's a timezone issue. Lines 16 and 17 were added by me # to debug a bit. As you can see, they produce times out by an hour. # I'm currently on DST (Australian Eastern Summer Time). # The lines are as follows: t/03date.t: my $s = $e->date->epoch; + warn scalar gmtime $s; + warn scalar gmtime 1033030020; is $s => 1033030020, "Date matches."; -- Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: Platform: osname=linux, osvers=2.4.18-3, archname=i686-linux uname='linux ouroboros.anu.edu.au 2.4.18-3 #1 thu apr 18 07:37:53 edt 2002 i686 unknown ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-O2', cppflags='-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm' ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.3 2.96-112)', 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=-lnsl -lndbm -lgdbm -ldl -lm -lc -lcrypt -lutil perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.2.5' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Yes, it does appear to be a TZ thing. The difference is exactly one hour (3600 seconds), and it probably has something to do with daylight savings just changing. I'll look into it.
I believe this is now fixed. Certainly the tests seem to be passing now.