Subject: | installing namespace::autoclean on a fresh perl install fails due to missing Test deps |
Devel::NYTProf should be listed as a Test::Recommends and the test using it should skip if not there...
otherwise this is breaking for example the installation of Moose on a fresh perl 5.26.2
Show quoted text
> make test
PERL_DL_NONLAZY=1 "/usr/local/perl/perls/perl-5.26.2/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-basic.t ................ ok
t/01-function-wipeout.t ..... ok
t/02-inheritance.t .......... ok
t/03-unimport.t ............. ok
t/04-except.t ............... ok
t/05-explicit-cleanee.t ..... ok
t/05-syntax-error.t ......... ok
t/06-other-types.t .......... ok
t/07-debugger.t ............. Can't locate Devel/NYTProf.pm in @INC (you may need to install the Devel::NYTProf module) (@INC contains: /Users/nicolas/.cpanm/work/1540851573.11991/namespace-clean-0.27/blib/lib /Users/nicolas/.cpanm/work/1540851573.11991/namespace-clean-0.27/blib/arch /Users/nicolas/.dotfiles/perl-must-have/lib /Users/nicolas/perl5/lib/perl5/ /Users/nicolas/.dotfiles/perl-must-have/lib /Users/nicolas/.dotfiles/perl-must-have/lib /Users/nicolas/perl5/lib/perl5/ /Users/nicolas/perl5/lib/perl5/ /usr/local/perl/perls/perl-5.26.2/lib/site_perl/5.26.2/darwin-2level /usr/local/perl/perls/perl-5.26.2/lib/site_perl/5.26.2 /usr/local/perl/perls/perl-5.26.2/lib/5.26.2/darwin-2level /usr/local/perl/perls/perl-5.26.2/lib/5.26.2 .) at t/07-debugger.t line 1.
BEGIN failed--compilation aborted at t/07-debugger.t line 1.
# Looks like your test exited with 2 before it could output anything.
t/07-debugger.t ............. Dubious, test returned 2 (wstat 512, 0x200)
Failed 4/4 subtests
t/07-pseudo-debugger.t ...... ok
t/08-const-sub.t ............ ok
t/09-fiddle-hinthash.t ...... ok
t/10-pure-perl.t ............ 10/15 Can't locate Devel/NYTProf.pm in @INC (you may need to install the Devel::NYTProf module) (@INC contains: /Users/nicolas/.cpanm/work/1540851573.11991/namespace-clean-0.27/blib/lib /Users/nicolas/.cpanm/work/1540851573.11991/namespace-clean-0.27/blib/arch /Users/nicolas/.dotfiles/perl-must-have/lib /Users/nicolas/perl5/lib/perl5/ /Users/nicolas/.dotfiles/perl-must-have/lib /Users/nicolas/.dotfiles/perl-must-have/lib /Users/nicolas/perl5/lib/perl5/ /Users/nicolas/perl5/lib/perl5/ /usr/local/perl/perls/perl-5.26.2/lib/site_perl/5.26.2/darwin-2level /usr/local/perl/perls/perl-5.26.2/lib/site_perl/5.26.2/darwin-2level /usr/local/perl/perls/perl-5.26.2/lib/site_perl/5.26.2 /usr/local/perl/perls/perl-5.26.2/lib/5.26.2/darwin-2level /usr/local/perl/perls/perl-5.26.2/lib/5.26.2/darwin-2level /usr/local/perl/perls/perl-5.26.2/lib/5.26.2 . /usr/local/perl/perls/perl-5.26.2/lib/site_perl/5.26.2/darwin-2level /usr/local/perl/perls/perl-5.26.2/lib/site_perl/5.26.2 /usr/local/perl/perls/perl-5.26.2/lib/5.26.2/darwin-2level /usr/local/perl/perls/perl-5.26.2/lib/5.26.2 .) at t/07-debugger.t line 1.
BEGIN failed--compilation aborted at t/07-debugger.t line 1.
# Looks like your test exited with 2 before it could output anything.
# Failed test 'Exit 512 from: /usr/local/perl/perls/perl-5.26.2/bin/perl t/07-debugger.t'
# at t/10-pure-perl.t line 71.
# Looks like you failed 1 test of 15.
t/10-pure-perl.t ............ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/15 subtests
t/11-multiclean-in-scope.t .. ok
Test Summary Report
-------------------
t/07-debugger.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: Bad plan. You planned 4 tests but ran 0.
t/10-pure-perl.t (Wstat: 256 Tests: 15 Failed: 1)
Failed test: 11
Non-zero exit status: 1
Files=14, Tests=2110, 2 wallclock secs ( 0.17 usr 0.04 sys + 1.49 cusr 0.26 csys = 1.96 CPU)
Result: FAIL
Failed 2/14 test programs. 1/2110 subtests failed.
make: *** [test_dynamic] Error 255