Subject: | System perl used in tests |
t/Astt.t may fail like this:
PERL_DL_NONLAZY=1 "/bbbike/perl-5.25.5/bin/perl5.25.5" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
Can't locate Template.pm in @INC (you may need to install the Template module) (@INC contains: /tmpfs/.cpan-build-cpansand/2016092909/Template-Ast-0.02-0/inc /tmpfs/.cpan-build-cpansand/2016092909/Template-Ast-0.02-0/blib/lib /tmpfs/.cpan-build-cpansand/2016092909/Template-Ast-0.02-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 script/astt.pl line 12.
BEGIN failed--compilation aborted at script/astt.pl line 12.
# Failed test at t/Astt.t line 40.
# Looks like you failed 1 test of 5.
t/Astt.t ..........
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/5 subtests
The contents of the @INC path indicate that the system perl (/usr/bin/perl, the first perl in PATH) is used, not the perl used currently for the build. Usually this can be fixed by using $^X at some place.