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

Hi Monks, I'm new to perl and I have been trying to install Module-TestConfig. After finding and adding a number of prerequisites, I started to install it, and it went through make fine, but the make test failed and I am at a loss as to why... Here is the output from testing...
PERL_DL_NONLAZY=1 /data/users/oraias/perl/bin/perl "-MExtUtils::Comman +d::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00_init........ok t/05_question....ok t/10_basic.......ok t/20_q_and_a.....ok t/30_env.........ok t/40_defaults....ok 8/28 t/40_defaults....NOK 9# Failed test 'save_defaults()' # at t/40_defaults.t line 40. # found warning: Filehandle STDIN reopened as F only for output at /da +ta/users/username/myperl/Module-TestConfig-0.04/blib/lib/Module/ + TestConfig.pm line 263. # found carped warning: Skipping bad key with a separator in it: 'bro: +ken' at t/40_defaults.t line 39 # expected to find carped warning: /^Skipping bad key/ t/40_defaults....ok 28/28# Looks like you failed 1 test of 28. t/40_defaults....dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 9 Failed 1/28 tests, 96.43% okay t/50_save........ok t/60_validate....ok Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/40_defaults.t 1 256 28 1 3.57% 9 Failed 1/8 test scripts, 87.50% okay. 1/100 subtests failed, 99.00% ok +ay. *** Error code 29 make: Fatal error: Command failed for target `test_dynamic'


any ideas? Thanks. switcharoonie

Replies are listed 'Best First'.
Re: failed test while installing Module-TestConfig
by Narveson (Chaplain) on Mar 10, 2008 at 19:02 UTC

    It's possible that you have, not a defective installation, but a defective test.

    The test author may simply have been too restrictive in asking the warning to match /^Skipping bad key/ when it would have matched /Skipping bad key/.

    Go ahead and try to use Module::TestConfig.