Skip Menu |

This queue is for tickets about the Test-Class CPAN distribution.

Report information
The Basics
Id: 16350
Status: resolved
Priority: 0/
Queue: Test-Class

People
Owner: Nobody in particular
Requestors: ABH [...] cpan.org
LGODDARD [...] cpan.org
Cc:
AdminCc:

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



Subject: RedHat install failure: Failed 2/38 test scripts, 94.74% okay. 8/145 subtests failed, 94.48% okay
Show quoted text
cpan> install Test::Class
Running install for module Test::Class Running make for A/AD/ADIE/Test-Class-0.11.tar.gz Is already unwrapped into directory /root/.cpan/build/Test-Class-0.11 Has already been processed within this session Running make test PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/_new.................ok t/bailout..............ok t/builder..............ok t/compile..............ok t/current_method.......ok t/die_before_plan......# Test 3 got: "# Failed test 'setup (for test method 'test') died (died before plan set)'" (t/die_before_plan.t at line 42 fail #3) # Expected: "# Failed test (t/die_before_plan.t at line 32)" # t/die_before_plan.t line 42 is: ok($actual, $expected); # Test 4 got: "# in t/die_before_plan.t at line 32." (t/die_before_plan.t at line 42 fail #4) # Expected: "ok 2 - test just here to get setup method run" Use of uninitialized value in scalar chomp at t/die_before_plan.t line 40, <DATA> line 4. Use of uninitialized value in substitution (s///) at t/die_before_plan.t line 41, <DATA> line 4. # Test 5 got: "ok 2 - test just here to get setup method run" (t/die_before_plan.t at line 42 fail #5) # Expected: <UNDEF> t/die_before_plan......FAILED tests 3-5 Failed 3/4 tests, 25.00% okay t/documented...........skipped all skipped: Test::Pod::Coverage required t/expected_tests.......ok t/fail1................ok t/fail2................# Test 3 got: "# Failed test 'The object isa Object'" (t/fail2.t at line 47 fail #3) # Expected: "# Failed test (t/fail2.t at line 22)" # t/fail2.t line 47 is: ok($actual, $expected); # Test 4 got: "# in t/fail2.t at line 22." (t/fail2.t at line 47 fail #4) # Expected: "# The object isn't defined" # Test 5 got: "# The object isn't defined" (t/fail2.t at line 47 fail #5) # Expected: "not ok 2 - cannot create Objects" # Test 6 got: "not ok 2 - cannot create Objects" (t/fail2.t at line 47 fail #6) # Expected: "# Failed test (t/fail2.t at line 22)" # Test 7 got: "# Failed test 'cannot create Objects'" (t/fail2.t at line 47 fail #7) # Expected: "not ok 3 - cannot create Objects" # Test 8 got: "# in t/fail2.t at line 22." (t/fail2.t at line 47 fail #8) # Expected: "# Failed test (t/fail2.t at line 22)" Use of uninitialized value in scalar chomp at t/fail2.t line 45, <DATA> line 8. Use of uninitialized value in substitution (s///) at t/fail2.t line 46, <DATA> line 8. # Test 9 got: "not ok 3 - cannot create Objects" (t/fail2.t at line 47 fail #9) # Expected: <UNDEF> Use of uninitialized value in scalar chomp at t/fail2.t line 45, <DATA> line 8. Use of uninitialized value in substitution (s///) at t/fail2.t line 46, <DATA> line 8. # Test 10 got: "# Failed test 'cannot create Objects'" (t/fail2.t at line 47 fail #10) # Expected: <UNDEF> Use of uninitialized value in scalar chomp at t/fail2.t line 45, <DATA> line 8. Use of uninitialized value in substitution (s///) at t/fail2.t line 46, <DATA> line 8. # Test 11 got: "# in t/fail2.t at line 22." (t/fail2.t at line 47 fail #11) # Expected: <UNDEF> t/fail2................FAILED tests 3-12 Failed 10/9 tests, -11.11% okay t/fail3................ok t/header...............ok t/late_header..........ok t/methodinfo...........ok t/named_test...........ok t/num_method_tests.....ok t/num_tests............ok t/override.............ok t/pod..................ok t/run_all_tests........ok t/runtests.............ok t/runtests_die.........ok t/runtests_extra.......ok t/runtests_noplan......ok t/runtests_of..........ok t/runtests_result......ok t/runtests_return......ok t/runtests_trailing....ok t/skip1................ok t/skip2................ok t/skip_class_reason....ok t/spaces...............ok t/startup..............ok t/startup_that_dies....ok t/test_classes.........ok t/test_verbose.........ok t/Tests................ok t/todo.................ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/die_before_plan.t 4 4 100.00% 3-5 t/fail2.t 9 12 133.33% 3-12 1 test skipped. Failed 2/38 test scripts, 94.74% okay. 8/145 subtests failed, 94.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 Show quoted text
cpan> cpan> exit
Lockfile removed. [root@dave11 usr]# perl -V Summary of my perl5 (revision 5 version 8 subversion 7) configuration: Platform: osname=linux, osvers=2.4.21-32.0.1.el, archname=i686-linux uname='linux dave11 2.4.21-32.0.1.el #1 tue may 17 18:01:37 edt 2005 i686 i686 i386 gnulinux ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=undef usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm', optimize='-O2', cppflags='-fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm' ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.3 2.96-122)', gccosandvers='linux7' 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=4 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -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='-Wl,-E -Wl,-rpath,/usr/local/lib/perl5/5.8.7/CORE' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: Built under linux Compiled at Sep 16 2005 11:04:03 %ENV: PERL5LIB="/usr/local/lib/perl5/site_perl/5.8.7/" PERL5LIBOLD="/usr/lib/perl5/site_perl/5.8.0/" @INC: /usr/local/lib/perl5/site_perl/5.8.7/ /usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5/5.8.7 /usr/local/lib/perl5/site_perl/5.8.7 /usr/local/lib/perl5/site_perl . [root@dave11 usr]#
I get the same errors on OS X (perl 5.8.7, Test::More 0.62) sh-2.05b# /pkg/bin/prove -Iblib -v t/die_before_plan.t t/die_before_plan....1..4 # Running under perl version 5.008007 for darwin # Current time local: Wed Mar 8 17:32:00 2006 # Current time GMT: Thu Mar 9 01:32:00 2006 # Using Test.pm version 1.25 # Test 3 got: "# Failed test 'setup (for test method 'test') died (died before plan set)'" (t/ die_before_plan.t at line 42 fail #3) # Expected: "# Failed test (t/die_before_plan.t at line 32)" # t/die_before_plan.t line 42 is: ok($actual, $expected); ok 1 # Test 4 got: "# in t/die_before_plan.t at line 32." (t/die_before_plan.t at line 42 fail #4) # Expected: "ok 2 - test just here to get setup method run" Use of uninitialized value in scalar chomp at t/die_before_plan.t line 40, <DATA> line 4. Use of uninitialized value in substitution (s///) at t/die_before_plan.t line 41, <DATA> line 4. ok 2 # Test 5 got: "ok 2 - test just here to get setup method run" (t/die_before_plan.t at line 42 fail #5) # Expected: <UNDEF> not ok 3 not ok 4 not ok 5 FAILED tests 3-5 Failed 3/4 tests, 25.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------ - t/die_before_plan.t 4 4 100.00% 3-5 Failed 1/1 test scripts, 0.00% okay. 2/4 subtests failed, 50.00% okay. sh-2.05b# /pkg/bin/prove -Iblib -v t/fail2.t t/fail2....1..9 # Running under perl version 5.008007 for darwin # Current time local: Wed Mar 8 17:34:54 2006 # Current time GMT: Thu Mar 9 01:34:54 2006 # Using Test.pm version 1.25 # Test 3 got: "# Failed test 'The object isa Object'" (t/fail2.t at line 47 fail #3) # Expected: "# Failed test (t/fail2.t at line 22)" # t/fail2.t line 47 is: ok($actual, $expected); # Test 4 got: "# in t/fail2.t at line 22." (t/fail2.t at line 47 fail #4) # Expected: "# The object isn't defined" ok 1 # Test 5 got: "# The object isn't defined" (t/fail2.t at line 47 fail #5) # Expected: "not ok 2 - cannot create Objects" # Test 6 got: "not ok 2 - cannot create Objects" (t/fail2.t at line 47 fail #6) # Expected: "# Failed test (t/fail2.t at line 22)" ok 2 # Test 7 got: "# Failed test 'cannot create Objects'" (t/fail2.t at line 47 fail #7) # Expected: "not ok 3 - cannot create Objects" not ok 3 # Test 8 got: "# in t/fail2.t at line 22." (t/fail2.t at line 47 fail #8) # Expected: "# Failed test (t/fail2.t at line 22)" Use of uninitialized value in scalar chomp at t/fail2.t line 45, <DATA> line 8. Use of uninitialized value in substitution (s///) at t/fail2.t line 46, <DATA> line 8. # Test 9 got: "not ok 3 - cannot create Objects" (t/fail2.t at line 47 fail #9) # Expected: <UNDEF> Use of uninitialized value in scalar chomp at t/fail2.t line 45, <DATA> line 8. Use of uninitialized value in substitution (s///) at t/fail2.t line 46, <DATA> line 8. # Test 10 got: "# Failed test 'cannot create Objects'" (t/fail2.t at line 47 fail #10) # Expected: <UNDEF> Use of uninitialized value in scalar chomp at t/fail2.t line 45, <DATA> line 8. Use of uninitialized value in substitution (s///) at t/fail2.t line 46, <DATA> line 8. not ok 4 # Test 11 got: "# in t/fail2.t at line 22." (t/fail2.t at line 47 fail #11) not ok 5 not ok 6 # Expected: <UNDEF> not ok 7 not ok 8 not ok 9 not ok 10 not ok 11 ok 12 FAILED tests 3-12 Failed 10/9 tests, -11.11% okay Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------ - t/fail2.t 9 12 133.33% 3-12 Failed 1/1 test scripts, 0.00% okay. 6/9 subtests failed, 33.33% okay.
From: msf [...] openbsd.org
We get similar results on OpenBSD 3.9-current with perl 5.8.8 Checking if your kit is complete... Looks good Writing Makefile for Test::Class ===> Building for p5-Test-Class-0.11 cp lib/Test/Class/MethodInfo.pm blib/lib/Test/Class/MethodInfo.pm cp lib/Test/Class.pm blib/lib/Test/Class.pm cp lib/Test/Class.pod blib/lib/Test/Class.pod Manifying blib/man3/Test::Class.3p ===> Regression check for p5-Test-Class-0.11 PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/_new.................ok t/bailout..............ok t/compile..............ok t/current_method.......ok t/die_before_plan......ok 1/4# Test 3 got: "# Failed test 'setup (for test met hod 'test') died (died before plan set)'" (t/die_before_plan.t at line 42 fail # 3) t/die_before_plan......NOK 3# Expected: "# Failed test (t/die_before_plan. t at line 32)" # t/die_before_plan.t line 42 is: ok($actual, $expected); t/die_before_plan......NOK 4# Test 4 got: "# in t/die_before_plan.t at line 32 ." (t/die_before_plan.t at line 42 fail #4) # Expected: "ok 2 - test just here to get setup method run" Use of uninitialized value in scalar chomp at t/die_before_plan.t line 40, <DATA Show quoted text
> line 4.
Use of uninitialized value in substitution (s///) at t/die_before_plan.t line 41 , <DATA> line 4. t/die_before_plan......NOK 5# Test 5 got: "ok 2 - test just here to get setup me thod run" (t/die_before_plan.t at line 42 fail #5) # Expected: <UNDEF> t/die_before_plan......FAILED tests 3-5 Failed 3/4 tests, 25.00% okay t/documented...........ok t/expected_tests.......ok t/fail1................ok t/fail2................NOK 3# Test 3 got: "# Failed test 'The object isa Objec t'" (t/fail2.t at line 47 fail #3) # Expected: "# Failed test (t/fail2.t at line 22)"# t/fail2.t line 47 is: ok($actual, $expected); t/fail2................NOK 4# Test 4 got: "# in t/fail2.t at line 22." (t/fail 2.t at line 47 fail #4) # Expected: "# The object isn't defined" t/fail2................NOK 5# Test 5 got: "# The object isn't defined" (t/fa il2.t at line 47 fail #5) # Expected: "not ok 2 - cannot create Objects" t/fail2................NOK 6# Test 6 got: "not ok 2 - cannot create Objects" (t/ fail2.t at line 47 fail #6) # Expected: "# Failed test (t/fail2.t at line 22)" t/fail2................NOK 7# Test 7 got: "# Failed test 'cannot create Object s'" (t/fail2.t at line 47 fail #7) # Expected: "not ok 3 - cannot create Objects" t/fail2................NOK 8# Test 8 got: "# in t/fail2.t at line 22." (t/fail 2.t at line 47 fail #8) # Expected: "# Failed test (t/fail2.t at line 22)" Use of uninitialized value in scalar chomp at t/fail2.t line 45, <DATA> line 8. Use of uninitialized value in substitution (s///) at t/fail2.t line 46, <DATA> l ine 8. t/fail2................NOK 9# Test 9 got: "not ok 3 - cannot create Objects" (t/ fail2.t at line 47 fail #9) # Expected: <UNDEF> Use of uninitialized value in scalar chomp at t/fail2.t line 45, <DATA> line 8. Use of uninitialized value in substitution (s///) at t/fail2.t line 46, <DATA> l ine 8. t/fail2................NOK 10# Test 10 got: "# Failed test 'cannot create Obje cts'" (t/fail2.t at line 47 fail #10) # Expected: <UNDEF> Use of uninitialized value in scalar chomp at t/fail2.t line 45, <DATA> line 8. Use of uninitialized value in substitution (s///) at t/fail2.t line 46, <DATA> l ine 8. t/fail2................NOK 11# Test 11 got: "# in t/fail2.t at line 22." (t/fa il2.t at line 47 fail #11) # Expected: <UNDEF> t/fail2................FAILED tests 3-12 Failed 10/9 tests, -11.11% okay t/fail3................ok t/header...............ok t/late_header..........ok t/methodinfo...........ok t/named_test...........ok t/num_method_tests.....ok t/num_tests............ok t/override.............ok t/pod..................ok t/run_all_tests........ok t/runtests.............ok t/runtests_die.........ok t/runtests_extra.......ok t/runtests_noplan......ok t/runtests_of..........ok t/runtests_result......ok t/runtests_return......ok t/runtests_trailing....ok t/skip1................ok t/skip2................ok t/skip_class_reason....ok t/spaces...............ok t/startup..............ok t/startup_that_dies....ok t/test_classes.........ok t/test_verbose.........ok t/Tests................ok t/todo.................ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/die_before_plan.t 4 4 100.00% 3-5 t/fail2.t 9 12 133.33% 3-12 Failed 2/38 test scripts, 94.74% okay. 8/146 subtests failed, 94.52% okay. t/builder..............ok
Finally fixed in 0.12