Subject: | System perl used in tests |
t/10-sets.t usually fails on machines where not the system path is used (or the system path has additional modules installed):
PERL_DL_NONLAZY=1 "/bbbike/perl-5.20.2/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ....... 1/1 # Testing App::Sets 0.973
t/00-load.t ....... ok
t/10-sets.t ....... error invoking 'perl -I lib bin/sets t/sample/lista1 minus t/sample/lista2', overall exit status 512 at t/10-sets.t line 18.
# Looks like your test exited with 2 before it could output anything.
t/10-sets.t ....... Dubious, test returned 2 (wstat 512, 0x200)
No subtests run
t/20-module.t ..... ok
t/pod-coverage.t .. skipped: Test::Pod::Coverage - AUTHOR_TEST not set
t/pod.t ........... skipped: Test::Pod - AUTHOR_TEST not set
Test Summary Report
-------------------
t/10-sets.t (Wstat: 512 Tests: 0 Failed: 0)
Non-zero exit status: 2
Parse errors: No plan found in TAP output
Files=5, Tests=33, 1 wallclock secs ( 0.02 usr 0.04 sys + 0.19 cusr 0.23 csys = 0.48 CPU)
Result: FAIL
Calling by hand:
$ perl -I lib bin/sets t/sample/lista1 minus t/sample/lista2
Can't locate Log/Log4perl/Tiny.pm in @INC (@INC contains: 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 bin/sets line 5.
BEGIN failed--compilation aborted at bin/sets line 5.
Using the correct perl (i.e. $^X) does not yield an error:
$ perl5.20.2 -I lib bin/sets t/sample/lista1 minus t/sample/lista2
[2015/04/25 20:35:05] [INFO ] opening 't/sample/lista1' and sorting on the fly
[2015/04/25 20:35:05] [INFO ] opening 't/sample/lista2' and sorting on the fly
nono
quarto
secondo
sesto