Subject: | System perl used in perls |
Tests fail if the first perl in PATH is not the perl used for building and testing the distribution. At least that's an explanation for test failures like this:
...
# Failed test 'stderr_is_eq: perl bin/licensecheck -m --copyright t/devscripts/bsd-regents.c, '
# at t/devscripts.t line 54.
# got: 'Can't locate strictures.pm in @INC (you may need to install the strictures module) (@INC contains: /home/cpansand/.cpan/build/2016071803/App-Licensecheck-v3.0.3-WNvIGx/blib/lib /home/cpansand/.cpan/build/2016071803/App-Licensecheck-v3.0.3-WNvIGx/blib/arch /usr/local/lib/perl5/site_perl/mach/5.20 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.20/mach /usr/local/lib/perl5/5.20 /usr/local/lib/perl5/site_perl/5.20 /usr/local/lib/perl5/site_perl/5.20/mach .) at bin/licensecheck line 5.
# BEGIN failed--compilation aborted at bin/licensecheck line 5.
# '
# expected: ''
...
Usually one has to use $^X when calling scripts to fix this. Or use the converted script in blib/scripts which has the correct shebang already set.