Skip Menu |

This queue is for tickets about the Error CPAN distribution.

Report information
The Basics
Id: 20549
Status: resolved
Priority: 0/
Queue: Error

People
Owner: Nobody in particular
Requestors: andy [...] petdance.com
Cc:
AdminCc:

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



Subject: Error-0.17 doesn't pass test
Date: Wed, 19 Jul 2006 00:53:52 -0500 (CDT)
To: bug-Error [...] rt.cpan.org
From: andy [...] petdance.com (Andy Lester)
alester@osr-test[~/Error-0.17]$ make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01throw............................ok 58 ms t/02order............................ok 33 ms t/03throw-non-Error..................ok 48 ms t/04use-base-Error-Simple............ok 49 ms t/05text-errors-with-file-handles....ok 54 ms t/06customize-text-throw.............ok 51 ms t/07try-in-obj-destructor............ok 47 ms t/08warndie..........................NOK 9 # Failed test 'die \n-terminated exit code' # in t/08warndie.t at line 114. # got: '5' # expected: '3' t/08warndie..........................NOK 11 # Failed test 'die unterminated exit code' # in t/08warndie.t at line 135. # got: '5' # expected: '3' t/08warndie..........................NOK 13 # Failed test 'Error exit code' # in t/08warndie.t at line 156. # got: '5' # expected: '3' t/08warndie..........................NOK 21 # Failed test 'Custom die exit code' # in t/08warndie.t at line 215. # got: '5' # expected: '3' # Looks like you failed 4 tests of 21. t/08warndie..........................dubious Test returned status 4 (wstat 1024, 0x400) DIED. FAILED tests 9, 11, 13, 21 Failed 4/21 tests, 80.95% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/08warndie.t 4 1024 21 4 9 11 13 21 Failed 1/8 test scripts. 4/42 subtests failed. Files=8, Tests=42, 1 wallclock secs ( 0.16 cusr + 0.39 csys = 0.55 CPU) Failed 1/8 test programs. 4/42 subtests failed. make: *** [test_dynamic] Error 4 $ perl -V Summary of my perl5 (revision 5 version 8 subversion 4) configuration: Platform: osname=linux, osvers=2.6.12, archname=i386-linux-thread-multi uname='linux terranova 2.6.12 #1 smp tue aug 9 18:56:34 utc 2005 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.4 -Dsitearch=/usr/local/lib/perl/5.8.4 -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.4 -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='-O2', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -I/usr/local/include' ccversion='', gccversion='3.3.5 (Debian 1:3.3.5-8ubuntu2)', 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.4 gnulibc_version='2.3.2' 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 Locally applied patches: SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962 Built under linux Compiled at Dec 12 2005 13:47:11 @INC: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .
From: PEVANS [...] cpan.org
On Wed Jul 19 01:55:16 2006, andy@petdance.com wrote: ... Show quoted text
> t/08warndie..........................NOK 9 > # Failed test 'die \n-terminated exit code' > # in t/08warndie.t at line 114. > # got: '5' > # expected: '3'
... Ahh yes... I've had a look over the test code, and it's doing something of the following in a child: $! = 3; do_stuff(); die "message"; The hope being that, as perldoc -f die states, the child's exit code will be the value in $!. Of course, $! being simply libc's errno field, anything might happen to it in the interviening time. I.e. I've written the test code in a rather fragile breakable way. I'll recode the test to print messages on STDERR instead, which should get around that problem.
From: PEVANS [...] cpan.org
On Wed Jul 19 01:55:16 2006, andy@petdance.com wrote: Show quoted text
> # Failed test 'die \n-terminated exit code' > # in t/08warndie.t at line 114. > # got: '5' > # expected: '3'
... OK.. I have now fixed this in the svn repo; you can find it at https://svn.berlios.de/svnroot/repos/web-cpan/Error.pm/trunk It's marked as module version 0.17001, so I expect it will appear on CPAN soon enough, when Shlomi Fish uploads it. Hope that helps, -- Paul Evans
From: PEVANS [...] cpan.org
On Mon Jul 24 06:39:34 2006, PEVANS wrote: Show quoted text
> OK.. I have now fixed this in the svn repo; you can find it at > > https://svn.berlios.de/svnroot/repos/web-cpan/Error.pm/trunk > > It's marked as module version 0.17001, so I expect it will appear on > CPAN soon enough, when Shlomi Fish uploads it.
0.17001 is now on CPAN: http://search.cpan.org/~shlomif/Error-0.17001/ I believe that should fix it - please retest and let me know. -- Paul Evans
Subject: Re: [rt.cpan.org #20549] Error-0.17 doesn't pass test
Date: Mon, 31 Jul 2006 21:29:56 -0500
To: bug-Error [...] rt.cpan.org
From: Andy Lester <andy [...] petdance.com>
On Jul 29, 2006, at 3:19 PM, via RT wrote: Show quoted text
> http://search.cpan.org/~shlomif/Error-0.17001/ > > I believe that should fix it - please retest and let me know.
all good Error-0.17001/ Error-0.17001/t/ Error-0.17001/t/03throw-non-Error.t Error-0.17001/t/05text-errors-with-file-handles.t Error-0.17001/t/07try-in-obj-destructor.t Error-0.17001/t/04use-base-Error-Simple.t Error-0.17001/t/01throw.t Error-0.17001/t/08warndie.t Error-0.17001/t/02order.t Error-0.17001/t/lib/ Error-0.17001/t/lib/MyDie.pm Error-0.17001/t/06customize-text-throw.t Error-0.17001/lib/ Error-0.17001/lib/Error.pm Error-0.17001/lib/Error/ Error-0.17001/lib/Error/Simple.pm Error-0.17001/examples/ Error-0.17001/examples/next-in-loop/ Error-0.17001/examples/next-in-loop/Error.pm-eval.pl Error-0.17001/examples/next-in-loop/Error.pm-next-out-of-catch.pl Error-0.17001/examples/next-in-loop/Error.pm-next-label.pl Error-0.17001/examples/next-in-loop/README Error-0.17001/examples/next-in-loop/Error.pm-next.pl Error-0.17001/examples/warndie.pl Error-0.17001/examples/example.pl Error-0.17001/Error.ppd Error-0.17001/MANIFEST Error-0.17001/META.yml Error-0.17001/ChangeLog Error-0.17001/Makefile.PL Error-0.17001/README Package came without SIGNATURE CPAN.pm: Going to build S/SH/SHLOMIF/Error-0.17001.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Error CPAN: YAML loaded ok cp lib/Error.pm blib/lib/Error.pm cp lib/Error/Simple.pm blib/lib/Error/Simple.pm Manifying blib/man3/Error.3pm Manifying blib/man3/Error::Simple.3pm /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01throw............................ok 82 ms t/02order............................ok 48 ms t/03throw-non-Error..................ok 437 ms t/04use-base-Error-Simple............ok 119 ms t/05text-errors-with-file-handles....ok 141 ms t/06customize-text-throw.............ok 121 ms t/07try-in-obj-destructor............ok 117 ms t/08warndie..........................ok 415 ms All tests successful. Files=8, Tests=42, 1 wallclock secs ( 0.58 cusr + 0.44 csys = 1.02 CPU) /usr/bin/make test -- OK Running make install Installing /usr/local/share/perl/5.8.4/Error.pm Unlinking /usr/share/perl5/Error.pm (shadowing?) Installing /usr/local/share/perl/5.8.4/Error/Simple.pm Installing /usr/local/man/man3/Error.3pm Installing /usr/local/man/man3/Error::Simple.3pm Writing /usr/local/lib/perl/5.8.4/auto/Error/.packlist Appending installation info to /usr/local/lib/perl/5.8.4/perllocal.pod /usr/bin/make install UNINST=1 -- OK Show quoted text
cpan> quit
Lockfile removed. -- Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance
On Mon Jul 31 22:30:25 2006, andy@petdance.com wrote: Show quoted text
> all good
OK cool, I shall mark this as resolved then. -- Paul Evans
Closing bug -- Paul Evans
On Wed Aug 09 03:46:14 2006, PEVANS wrote: Show quoted text
> Closing bug
OK, hopefully now I can close the bug -- Paul Evans