danmcb has asked for the wisdom of the Perl Monks concerning the following question:

the previous steps of installing manually from the build dir are ok ... but make test does this:
root@daniel-ubuntu:~/.cpan/build/Test-Exception-0.21# make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib/lib', 'blib/arch')" t/*.t t/caller........ok t/documented....skipped all skipped: need Pod::Coverage t/Exception..... # Failed test 'dies_ok: normal exit detected' # in t/Exception.t at line 65. # STDOUT is: # not ok 1 - lived. oops # # not: # not ok 1 - lived. oops # not ok 2 # # as expected # Failed test 'lives_ok: die detected' # in t/Exception.t at line 75. # STDOUT is: # not ok 1 # # not: # not ok 1 # not ok 2 # # as expected # Failed test 'lives_ok: die detected' # in t/Exception.t at line 81. # STDOUT is: # not ok 1 # # not: # not ok 1 # not ok 2 # # as expected # Failed test 'throws_ok: regex bad match detected' # in t/Exception.t at line 92. # STDOUT is: # not ok 1 - should die # # not: # not ok 1 - should die # not ok 2 # # as expected # Failed test 'throws_ok: exception on normal exit' # in t/Exception.t at line 103. # STDOUT is: # not ok 1 - threw Local::Error::Simple # # not: # not ok 1 - threw Local::Error::Simple # not ok 2 # # as expected # Failed test 'throws_ok: bad sub-class match detected' # in t/Exception.t at line 114. # STDOUT is: # not ok 1 - threw Local::Error::Test # # not: # not ok 1 - threw Local::Error::Test # not ok 2 # # as expected # Failed test 'throws_ok: throws_ok found overloaded' # in t/Exception.t at line 121. # STDOUT is: # not ok 1 - threw Local::Error::Test # # not: # not ok 1 - threw Local::Error::Test # not ok 2 # # as expected # Failed test 'throws_ok: throws_ok found overloaded' # in t/Exception.t at line 128. # STDOUT is: # not ok 1 - threw Local::Error::Overload (overloaded) # # not: # not ok 1 - threw Local::Error::Overload (overloaded) # not ok 2 # # as expected # Failed test 'lives_ok: overload without fallback' # in t/Exception.t at line 147. # STDOUT is: # not ok 1 # # not: # not ok 1 # not ok 2 # # as expected # Failed test 'throws_ok: throws_ok overload without fallback' # in t/Exception.t at line 154. # STDOUT is: # not ok 1 - threw Local::Error::Test # # not: # not ok 1 - threw Local::Error::Test # not ok 2 # # as expected t/Exception.....FAILED tests 3, 5-6, 8, 10, 12-14, 18-19 Failed 10/19 tests, 47.37% okay t/lives_and.....ok t/pod...........skipped all skipped: Test::Pod 1.00 required for testing POD t/preserve......ok t/return........ok t/stacktrace.... # Failed test 'regex in stacktrace ignored' # in t/stacktrace.t at line 16. # STDOUT is: # not ok 1 - threw /fribble/ # # not: # not ok 1 - threw /fribble/ # not ok 2 # # as expected t/stacktrace....FAILED test 2 Failed 1/2 tests, 50.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/Exception.t 19 10 52.63% 3 5-6 8 10 12-14 18-19 t/stacktrace.t 2 1 50.00% 2 2 tests skipped. Failed 2/8 test scripts, 75.00% okay. 11/46 subtests failed, 76.09% ok +ay.
any ideas? thanks.

Edited by planetscape - added readmore tags

( keep:0 edit:4 reap:0 )

Replies are listed 'Best First'.
Re: problems installing Test::Exception
by adrianh (Chancellor) on Jul 16, 2006 at 10:56 UTC

    If so I suspect you're falling foul of a backwards compatibility problem with test_fail() in Test::Builder::Tester 0.63. The ever efficient schwern has just released Test::Builder/More/Simple 0.64 that fixes this.

      thanks. I do indeed have 0.63 of More and Simple. Test::Builder and Test::Builder::Tester are 0.33 and 1.03 respectively though. I guess I need to look out later versions anyhow
        This will not install for me either... I have:
        • Test::More is up to date (0.74).
        • Test::Simple is up to date (0.74).
        • Test::Builder is up to date (0.74).
        • Test::Builder::Tester is up to date (1.11).