Ubic icon indicating copy to clipboard operation
Ubic copied to clipboard

Test suite fails with PERL_USE_UNSAFE_INC=0

Open eserte opened this issue 8 years ago • 1 comments

Most tests fail if running make test PERL_USE_UNSAFE_INC=0 on a newer perl (e.g. 5.27.7) like this:

t/loaders/json.t ............... Can't locate t/Utils.pm in @INC (you may need to install the t::Utils module) (@INC contains: lib /home/cpansand/.cpan/build/2017122921/Ubic-1.60-0/blib/lib /home/cpansand/.cpan/build/2017122921/Ubic-1.60-0/blib/arch /usr/perl5.26.1p/lib/site_perl/5.26.1/amd64-freebsd /usr/perl5.26.1p/lib/site_perl/5.26.1 /usr/perl5.26.1p/lib/5.26.1/amd64-freebsd /usr/perl5.26.1p/lib/5.26.1) at t/loaders/json.t line 10.
BEGIN failed--compilation aborted at t/loaders/json.t line 10.
# Looks like your test exited with 2 before it could output anything.

The fix is probably to put everywhere a use lib "." (or something similar) before use-ing the t::Utils module.

eserte avatar Dec 29 '17 15:12 eserte

We are having issues with this in our recent re-build against 5.28.0

toddr avatar Sep 28 '18 19:09 toddr