Subject: | Devel::CallStack's tests fail when PERL5OPT is loading modules |
Consider this:
[kane@myriad ...tmp/Devel-CallStack-0.14]$ perlc Makefile.PL
Writing Makefile for Devel::CallStack
[kane@myriad ...tmp/Devel-CallStack-0.14]$ setenv PERL5OPT -Mwarnings
[kane@myriad ...tmp/Devel-CallStack-0.14]$ make test
PERL_DL_NONLAZY=1 /usr/bin/perlc "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00_use.........ok
t/01_basic.......NOK 1# Failed test (t/01_basic.t at line 16)
# Looks like you failed 1 tests of 1.
t/01_basic.......dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/01_out.........# Failed test (t/01_out.t at line 16)
t/01_out.........NOK 1# Looks like you failed 1 tests of 1.
t/01_out.........dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/02_depth.......NOK 1# Failed test (t/02_depth.t at line 16)
t/02_depth.......NOK 2# Failed test (t/02_depth.t at line 25)
t/02_depth.......ok 4/4# Looks like you failed 2 tests of 4.
t/02_depth.......dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 1-2
Failed 2/4 tests, 50.00% okay
t/03_reverse.....ok
t/04_full........# Failed test (t/04_full.t at line 16)
t/04_full........NOK 1# Looks like you failed 1 tests of 1.
t/04_full........dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/05_combined....# Failed test (t/05_combined.t at line 16)
# Looks like you failed 1 tests of 1.
t/05_combined....dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/09_bad.........ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/01_basic.t 1 256 1 1 100.00% 1
t/01_out.t 1 256 1 1 100.00% 1
t/02_depth.t 2 512 4 2 50.00% 1-2
t/04_full.t 1 256 1 1 100.00% 1
t/05_combined.t 1 256 1 1 100.00% 1
Failed 5/8 test scripts, 37.50% okay. 6/11 subtests failed, 45.45% okay.
make: *** [test_dynamic] Error 2
[kane@myriad ...tmp/Devel-CallStack-0.14]$
Sadly, CPANPLUS also sets PERL5OPT, so all Devel::CallStack tests fail. There's basically a few extra lines in the output file, for the loading of the module...