Skip Menu |

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

Report information
The Basics
Id: 90051
Status: rejected
Priority: 0/
Queue: Test-Class

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

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



Subject: Test::Class v0.40 tests failed
Hi, i installed some packages through cpanm and they had a Test::Class I got (perl 5.16.2, OS is CentOS 6.4 64bit): Building Test-Class # Testing Test::Class::Load 0.40, Perl 5.016002, /usr/local/bin/perl t/00-load.t .................... ok t/20-load-classes.t ............ ok t/21-load-subclassed.t ......... ok t/Tests.t ...................... ok t/_new.t ....................... ok t/bad-autoloads.t .............. skipped: need Contextual::Return t/bailout.t .................... ok t/builder.t .................... ok t/compile.t .................... ok t/current_method.t ............. ok t/diag_on_failure.t ............ ok t/die-in-setup.t ............... ok t/die_before_plan.t ............ ok t/expected_tests.t ............. ok t/fail1.t ...................... ok # Failed test 'fail2' # at t/fail2.t line 38. # STDOUT is: # not ok 1 - undef isa 'Object' # not ok 2 - cannot create Objects # # not: # (?^:not ok 1 - (?:The thing|undef) isa '?Object'?\n) # not ok 2 - cannot create Objects # # as expected # STDERR is: # # Failed test 'undef isa 'Object'' # # at t/fail2.t line 18. # # (in Object::Test->_test_new) # # undef isn't defined # # Failed test 'cannot create Objects' # # at t/fail2.t line 18. # # (in Object::Test->_test_new) # # not: # /#\s+Failed\ test.*?\n?.*?at\ t\/fail2\.t line 18.*\n?/ # # (in Object::Test->_test_new) # (?^:#\s+(?:The thing|undef) isn't defined\n) # /#\s+Failed\ test.*?\n?.*?at\ t\/fail2\.t line 18.*\n?/ # # (in Object::Test->_test_new) # # as expected t/fail2.t ...................... Failed 1/2 subtests t/fail3.t ...................... ok t/filter.t ..................... ok t/filter_bad_filter.t .......... ok t/filter_fixtures.t ............ ok t/filter_fixtures_only.t ....... ok t/filter_multiple.t ............ ok t/header.t ..................... ok t/late_header.t ................ ok t/methodinfo.t ................. ok t/named_test.t ................. ok t/num_method_tests.t ........... ok t/num_tests.t .................. ok t/override.t ................... ok t/rt15870.t .................... ok t/rt17264.t .................... ok t/run_all_tests.t .............. ok t/runtests.t ................... ok # Failed test 'early die handled' # at t/runtests_die.t line 34. # STDOUT is: # not ok 1 - undef isa 'Object' # not ok 2 - test_object died (could not create object) # # not: # (?^:not ok 1 - (?:The thing|undef) isa '?Object'?\n) # not ok 2 - test_object died (could not create object) # # as expected # STDERR is: # # Failed test 'undef isa 'Object'' # # at t/runtests_die.t line 15. # # (in Foo->test_object) # # undef isn't defined # # Failed test 'test_object died (could not create object)' # # at t/runtests_die.t line 33. # # (in Foo->test_object) # # not: # /#\s+Failed\ test.*?\n?.*?at\ t\/runtests_die\.t line 15.*\n?/ # # (in Foo->test_object) # (?^:# (?:The thing|undef) isn't defined\n) # /#\s+Failed\ test.*?\n?.*?at\ t\/runtests_die\.t line 33.*\n?/ # # (in Foo->test_object) # # as expected t/runtests_die.t ............... Failed 1/1 subtests t/runtests_extra.t ............. ok t/runtests_noplan.t ............ ok t/runtests_of.t ................ ok t/runtests_result.t ............ ok # Failed test 'early return handled (fail)' # at t/runtests_return.t line 42. # STDERR is: # # Failed test '(Bar::darwin_only returned before plan complete)' # # at /root/.cpanm/work/1383599104.25558/Test-Class-0.40/blib/lib/Test/Class.pm line 392. # # (in Bar->darwin_only) # # Failed test '(Bar::darwin_only returned before plan complete)' # # at /root/.cpanm/work/1383599104.25558/Test-Class-0.40/blib/lib/Test/Class.pm line 392. # # (in Bar->darwin_only) # # not: # (?^s:.*in Bar->darwin_only.*) # # as expected t/runtests_return.t ............ Failed 1/2 subtests t/runtests_trailing.t .......... ok t/runtests_with_wrong_class.t .. ok t/show_plan_in_shutdown.t ...... ok t/skip1.t ...................... ok t/skip2.t ...................... ok t/skip_class_reason.t .......... ok # # Bar::Test->the_test t/skip_empty_classes.t ......... ok t/spaces.t ..................... ok t/startup.t .................... ok t/startup_that_dies.t .......... ok t/test_classes.t ............... ok t/test_deep.t .................. ok t/test_method.t ................ ok t/test_verbose.t ............... ok # Test::More: 0.99 t/todo.t ....................... ok Test Summary Report ------------------- t/fail2.t (Wstat: 0 Tests: 2 Failed: 1) Failed test: 1 t/runtests_die.t (Wstat: 0 Tests: 1 Failed: 1) Failed test: 1 t/runtests_return.t (Wstat: 0 Tests: 2 Failed: 1) Failed test: 2 Files=54, Tests=184, 3 wallclock secs ( 0.18 usr 0.15 sys + 2.37 cusr 0.41 csys = 3.11 CPU) Result: FAIL Failed 3/54 test programs. 3/184 subtests failed. -> FAIL Installing Test::Class failed. See /root/.cpanm/work/1383599104.25558/build.log for details. Retry with --force to force install it.
I tried to install v0.39 & v0.38 and i got same errors in tests. But i have normal installed Test::Class v0.39 in other CentOS 6.4 64bit machine (same perl 5.16.2) so i think error in other module (in dependencies) :-/
I installed again Test::More (Test::Simple) and now it upgraded from v0.99 Now Test::Class v0.40 has been installed OK I think problem was in Test::More v0.99 I think it bug can be closed. Thanks
Closed! Yes, as you say 0.99 was broken. Earlier and later versions are okay. -- rjbs