Subject: | test.pl is using wrong perl |
Some of my smokers show the following type of test failure:
...
Output from './Build test':
Can't locate Data/Dump.pm in @INC (you may need to install the Data::Dump module) (@INC contains: /home/phil/perl/cpan/DataTableText/lib/ /home/cpansand/.cpan/build/2019053120/Data-Table-Text-20190530-0/blib/lib /home/cpansand/.cpan/build/2019053120/Data-Table-Text-20190530-0/blib/arch /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at /home/cpansand/.cpan/build/2019053120/Data-Table-Text-20190530-0/blib/lib/Data/Table/Text.pm line 27.
BEGIN failed--compilation aborted at /home/cpansand/.cpan/build/2019053120/Data-Table-Text-20190530-0/blib/lib/Data/Table/Text.pm line 27.
Compilation failed in require at /var/tmp/cpansmoker-1023/2019053120/f9hFPD94L7 line 2.
BEGIN failed--compilation aborted at /var/tmp/cpansmoker-1023/2019053120/f9hFPD94L7 line 2.
# Failed test at (eval 15) line 1875.
Finished in 1.01420688629150391 seconds
# Looks like you failed 1 test of 503.
test.pl ..
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/503 subtests
(less 11 skipped subtests: 491 okay)
...
Data::Dump is correctly installed in this case --- but just for the perl running the build+test suite. The test script itself seems to use another perl (in this case the system perl, which is the first in the user's PATH).