Subject: | Wrong perl used in tests |
t/dist/basic.t fails on my smokers, because the wrong perl is used here --- the first one in user's PATH, which is the system perl, not the perl currently used for the build:
...
Can't locate Module/Build.pm in @INC (you may need to install the Module::Build module) (@INC contains: ... /usr/local/lib/perl5/5.28/mach /usr/local/lib/perl5/5.28 .) at Build.PL line 15.
BEGIN failed--compilation aborted at Build.PL line 15.
# Failed test 'dist exists'
# at t/dist/basic.t line 76.
# Failed test 'no errors'
# at t/dist/basic.t line 78.
# got: '"perl" unexpectedly returned exit value 2 at /usr/home/cpansand/.cpan/build/2019070114/App-DocKnot-3.00-1/blib/lib/App/DocKnot/Dist.pm line 186.
# '
# expected: ''
# Looks like you failed 2 tests of 3.
t/dist/basic.t ..............
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/3 subtests
...
Usually this can be fixed by calling the script explicitly with $^X, or using the blib/script version of the script (because there the shebang should be already fixed).