Subject: | System perl used in tests |
It seems that the first perl in user's $PATH is used in the test, and not the perl currently in use building the distribution. Usually this can be fixed by using $^X when calling scripts.
Sample output of "make test":
...
Can't locate Config/General.pm in @INC (@INC contains: lib /tmpfs/.cpan-build/2016012718/Backup-EZ-0.25-4Pz_fr/blib/lib /tmpfs/.cpan-build/2016012718/Backup-EZ-0.25-4Pz_fr/blib/arch /home/eserte/.cpan/build/2016012718/File-RandomGenerator-0.06-ut7yPm/blib/arch /home/eserte/.cpan/build/2016012718/File-RandomGenerator-0.06-ut7yPm/blib/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at lib/Backup/EZ.pm line 6.
BEGIN failed--compilation aborted at lib/Backup/EZ.pm line 6.
Compilation failed in require at t/nuke.pl line 6.
BEGIN failed--compilation aborted at t/nuke.pl line 6.
Can't locate Modern/Perl.pm in @INC (@INC contains: /tmpfs/.cpan-build/2016012718/Backup-EZ-0.25-4Pz_fr/blib/lib /tmpfs/.cpan-build/2016012718/Backup-EZ-0.25-4Pz_fr/blib/arch /home/eserte/.cpan/build/2016012718/File-RandomGenerator-0.06-ut7yPm/blib/arch /home/eserte/.cpan/build/2016012718/File-RandomGenerator-0.06-ut7yPm/blib/lib /home/eserte/.cpan/build/2016012718/File-RandomGenerator-0.06-ut7yPm/blib/arch /home/eserte/.cpan/build/2016012718/File-RandomGenerator-0.06-ut7yPm/blib/lib /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /home/eserte/.cpan/build/2016012718/File-RandomGenerator-0.06-ut7yPm/blib/lib/File/RandomGenerator.pm line 9.
BEGIN failed--compilation aborted at /home/eserte/.cpan/build/2016012718/File-RandomGenerator-0.06-ut7yPm/blib/lib/File/RandomGenerator.pm line 9.
Compilation failed in require at t/pave.pl line 6.
BEGIN failed--compilation aborted at t/pave.pl line 6.
mv: Aufruf von stat für â/tmp/backups/eserte/.tmpâ nicht möglich: Datei oder Verzeichnis nicht gefunden
at /tmpfs/.cpan-build/2016012718/Backup-EZ-0.25-4Pz_fr/blib/lib/Backup/EZ.pm line 216.
Backup::EZ::_ssh(Backup::EZ=HASH(0x207e5a8), "mv /tmp/backups/eserte/.tmp /tmp/backups/eserte/2016-01-27_18"..., undef) called at /tmpfs/.cpan-build/2016012718/Backup-EZ-0.25-4Pz_fr/blib/lib/Backup/EZ.pm line 394
Backup::EZ::backup(Backup::EZ=HASH(0x207e5a8)) called at t/11-backup.t line 37
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 22 just after 2.
t/11-backup.t ...............
Dubious, test returned 22 (wstat 5632, 0x1600)
All 2 subtests passed
...