DT 0.17 test failure on 5.8.1 RC4

2003-09-14 Thread Joshua Hoblitt
I was taking a look at what's currently in Redhat's 'Rawhide' and I discovered that 
DateTime 0.17 has test failures on their 5.8.1 RC4 build.

-J

--
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib/lib', 'blib/arch')" t/*.t
t/00loadok
t/01sanity..ok
t/02last_dayok
t/03components..Invalid offset: -124
# Looks like you planned 122 tests but only ran 55.
# Looks like your test died just after 55.
t/03components..dubious
Test returned status 255 (wstat 65280, 0xff00)
Scalar found where operator expected at (eval 153) line 1, near "'int'  $__val"
(Missing operator before   $__val?)
Operator or semicolon missing before &typedef at (eval 156) line 1.
Ambiguous use of & resolved as operator & at (eval 156) line 1.
DIED. FAILED tests 56-122
Failed 67/122 tests, 45.08% okay
t/04epoch...ok
t/05set.ok
t/06add.ok
t/07compare.ok
t/09greg# this may take a minute...
t/09gregok
t/10subtractok
t/11durationok
t/12weekok
t/13strftimeok 41/126# New locale: de
t/13strftimeok 75/126# New locale: it
t/13strftimeok
t/14locale..ok
t/15jd..ok
t/16truncateok
t/17set_return..ok
t/18today...ok
t/19leap_second.ok
t/20infiniteok
t/21bad_params..ok
t/22from_doyok
t/23storableok
t/24from_object.ok
t/25add_subtractok
t/26dt_leapsecond_pmok
Failed Test  Stat Wstat Total Fail  Failed  List of Failed
---
t/03components.t  255 65280   122  134 109.84%  56-122
Failed 1/26 test scripts, 96.15% okay. 67/1483 subtests failed, 95.48% okay.
make: *** [test_dynamic] Error 255
  /usr/bin/make test -- NOT OK
Running make install
  make test had returned bad status, won't install without force

Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
  Platform:
osname=linux, osvers=2.4.21-1.1931.2.393.entsmp, archname=i386-linux-thread-multi
uname='linux daffy.perf.redhat.com 2.4.21-1.1931.2.393.entsmp #1 smp wed aug 13 
21:51:41 edt 2003 i686 i686 i386 gnulinux '
config_args='-des -Doptimize=-O2 -g -pipe -march=i386 -mcpu=i686 -Dversion=5.8.1 
-Dmyhostname=localhost [EMAIL PROTECTED] -Dcc=gcc -Dcf_by=Red Hat, Inc. 
-Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr 
-Dsiteprefix=/usr -Dotherlibdirs=/usr/lib/perl5/5.8.1 -Duseshrplib -Dusethreads 
-Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm 
-Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 
-Uversiononly -Dpager=/usr/bin/less -isr'
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='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING 
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 
-I/usr/include/gdbm',
optimize='-O2 -g -pipe -march=i386 -mcpu=i686',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING 
-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.3.1 20030811 (Red Hat Linux 3.3.1-1)', 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='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.3.2'
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic 
-Wl,-rpath,/usr/lib/perl5/5.8.1/i386-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES 
PERL_IMPLICIT_CONTEXT
  Locally applied patches:
RC4
  Built under linux
  Compiled at Aug 20 2003 09:16:46
  @INC:
/usr/lib/perl5/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/5.8.1
/usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.8.1
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi
/usr/lib/per

Re: DT 0.17 test failure on 5.8.1 RC4

2003-09-15 Thread Dave Rolsky
On Sat, 13 Sep 2003, Joshua Hoblitt wrote:

> t/03components..Invalid offset: -124
> # Looks like you planned 122 tests but only ran 55.
> # Looks like your test died just after 55.
> t/03components..dubious
> Test returned status 255 (wstat 65280, 0xff00)
> Scalar found where operator expected at (eval 153) line 1, near "'int'  $__val"
> (Missing operator before   $__val?)
> Operator or semicolon missing before &typedef at (eval 156) line 1.
> Ambiguous use of & resolved as operator & at (eval 156) line 1.
> DIED. FAILED tests 56-122
> Failed 67/122 tests, 45.08% okay

The fault here is the test.  It was passing a bad offset as a time_zone
parameter to DateTime->new.  I'll release a new version.


-dave

/*===
House Absolute Consulting
www.houseabsolute.com
===*/