Subject: | System perl used in tests |
Tests fail on many smoker systems, see http://matrix.cpantesters.org/?dist=WebService-Freshservice%200.001
One reason seems to be that the system perl is used for running some test scripts, not $^X. Example:
...
Can't locate Dancer2.pm in @INC (you may need to install the Dancer2 module) (@INC contains: ./t/lib/ /tmpfs/.cpan-build-cpansand/2016080606/WebService-Freshservice-0.001-0/blib/lib /tmpfs/.cpan-build-cpansand/2016080606/WebService-Freshservice-0.001-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 t/bin/cached_api.pl line 5.
BEGIN failed--compilation aborted at t/bin/cached_api.pl line 5.
# No tests run!
# Failed test 'No tests run for subtest "Create Requester - Minimal Options"'
# at t/WebService/Freshservice.t line 80.
API failed - error: 'Can't connect to localhost:3001' at /tmpfs/.cpan-build-cpansand/2016080606/WebService-Freshservice-0.001-0/blib/lib/WebService/Freshservice.pm line 141.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 255 just after 5.
t/WebService/Freshservice.t ...................
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/5 subtests
...