Subject: | System perl used in tests |
t/2_cli.t fails on most of my smokers --- it seems that the system perl is used here, not the perl used for building & testing the distribution:
...
Can't locate YAML.pm in @INC (you may need to install the YAML module) (@INC contains: ./lib /home/cpansand/.cpan/build/2019100206/Device-ScanShare-1.014-0/blib/lib /home/cpansand/.cpan/build/2019100206/Device-ScanShare-1.014-0/blib/arch /home/cpansand/.local/share/.cpan/build/2019100206/LEOCHARRE-CLI-1.19-0/blib/arch /home/cpansand/.local/share/.cpan/build/2019100206/LEOCHARRE-CLI-1.19-0/blib/lib /home/cpansand/.local/share/.cpan/build/2019100206/Linux-usermod-0.69-0/blib/arch /home/cpansand/.local/share/.cpan/build/2019100206/Linux-usermod-0.69-0/blib/lib /home/cpansand/.local/share/.cpan/build/2019100206/LEOCHARRE-DEBUG-1.14-0/blib/arch /home/cpansand/.local/share/.cpan/build/2019100206/LEOCHARRE-DEBUG-1.14-0/blib/lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at bin/scanshare line 6.
BEGIN failed--compilation aborted at bin/scanshare line 6.
# Failed test 'scanshare does not crash on -b'
# at t/2_cli.t line 16.
# Looks like you failed 1 test of 2.
t/2_cli.t .......
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
...
Usual fix is to use $^X at some point.