Subject: | t/11_hash_random.t fails due to undeclared test dependency |
When running t/11_hash_random.t for Module-CPANTS-Analyse under Perl 5.18.0, it fails with the following error:
t/11_hash_random.t .......... Can't locate Data/Dump.pm in @INC (you may need to install the Data::Dump module) (@INC contains: /Users/tom/.cpan/build/Module-CPANTS-Analyse-0.89-4Ij5wn/blib/lib /Users/tom/.cpan/build/Module-CPANTS-Analyse-0.89-4Ij5wn/blib/arch /trw/local/perl/5.18.0/lib/site_perl/5.18.0/darwin-2level /trw/local/perl/5.18.0/lib/site_perl/5.18.0/darwin-2level /trw/local/perl/5.18.0/lib/site_perl/5.18.0 /trw/local/perl/5.18.0/lib/5.18.0/darwin-2level /trw/local/perl/5.18.0/lib/5.18.0/darwin-2level /trw/local/perl/5.18.0/lib/5.18.0 . /Users/tom/.cpan/build/Module-CPANTS-Analyse-0.89-4Ij5wn/blib/lib /Users/tom/.cpan/build/Module-CPANTS-Analyse-0.89-4Ij5wn/blib/arch /trw/local/perl/5.18.0/lib/site_perl/5.18.0/darwin-2level /trw/local/perl/5.18.0/lib/site_perl/5.18.0 /trw/local/perl/5.18.0/lib/5.18.0/darwin-2level /trw/local/perl/5.18.0/lib/5.18.0 .) at t/11_hash_random.pl line 3.
BEGIN failed--compilation aborted at t/11_hash_random.pl line 3.
t/11_hash_random.t .......... 1/?
# Failed test 'Slave forked script passed 3/3 checks with seed 0xd8792d91'
# at t/11_hash_random.t line 13.
# got: ''
# expected: '4,0
# '
Can't locate Data/Dump.pm in @INC (you may need to install the Data::Dump module) (@INC contains: /Users/tom/.cpan/build/Module-CPANTS-Analyse-0.89-4Ij5wn/blib/lib /Users/tom/.cpan/build/Module-CPANTS-Analyse-0.89-4Ij5wn/blib/arch /trw/local/perl/5.18.0/lib/site_perl/5.18.0/darwin-2level /trw/local/perl/5.18.0/lib/site_perl/5.18.0/darwin-2level /trw/local/perl/5.18.0/lib/site_perl/5.18.0 /trw/local/perl/5.18.0/lib/5.18.0/darwin-2level /trw/local/perl/5.18.0/lib/5.18.0/darwin-2level /trw/local/perl/5.18.0/lib/5.18.0 . /Users/tom/.cpan/build/Module-CPANTS-Analyse-0.89-4Ij5wn/blib/lib /Users/tom/.cpan/build/Module-CPANTS-Analyse-0.89-4Ij5wn/blib/arch /trw/local/perl/5.18.0/lib/site_perl/5.18.0/darwin-2level /trw/local/perl/5.18.0/lib/site_perl/5.18.0 /trw/local/perl/5.18.0/lib/5.18.0/darwin-2level /trw/local/perl/5.18.0/lib/5.18.0 .) at t/11_hash_random.pl line 3.
BEGIN failed--compilation aborted at t/11_hash_random.pl line 3.
# Failed test 'Slave forked script passed 3/3 checks with seed 0x5be01872'
# at t/11_hash_random.t line 13.
# got: ''
# expected: '4,0
# '
# Looks like you failed 2 tests of 2.
t/11_hash_random.t .......... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
This appears to be due to the fact that the test makes use of non-core module Data::Dump, but this module is not declared among the dependencies. The attached patch to Build.PL fixes the problem. Users of Makefile.PL will need to regenerate that file.
I have called it unimportant because though the install fails there is nothing actually wrong with the module itself.
Subject: | Module-CPANTS-Analyse-Build.patch |
--- Build.old 2013-08-01 12:24:16.000000000 -0400
+++ Build.PL 2013-08-02 20:24:46.000000000 -0400
@@ -33,6 +33,7 @@
'Module::Signature' => 0,
},
build_requires => {
+ 'Data::Dump' => 0,
'Test::More' => '0',
'Test::Deep' => '0',
'Test::Warn' => '0.11', #less problems with new Sub::Uplevel