Subject: | CPANPLUS installs without testing |
I opened up a CPAN (not CPANPLUS) session and typed "install CPANPLUS" (to start testing
out the CPANPLUS::Dist::Build distribution), and received an error message about some
"config" version being too low, and then the module happily installed anyway because it told
CPAN that all tests were successful:
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc',
'blib/lib', 'blib/arch')" t/00_CPANPLUS-Internals-Utils.t
t/00_CPANPLUS-Internals-Utils....[ERROR] Your config is of version '0.0499' but 'CPANPLUS'
requires a config of '0.050_04' or higher. Your 'CPANPLUS' is of version '0.055', but your
config requires a version of '0' or higher. You will need to reconfigure
t/00_CPANPLUS-Internals-Utils....ok
All tests successful.
To avoid this, when the test bail out, it needs to return the correct status to the caller so the
module won't continue getting installed.
-Ken