Skip to content

Test suite fails with PERL_USE_UNSAFE_INC=0 #87

@eserte

Description

@eserte

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions