[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: recent debian perl tests failures without . in @INC
From: |
Patrice Dumas |
Subject: |
Re: recent debian perl tests failures without . in @INC |
Date: |
Mon, 4 Sep 2017 14:42:34 +0200 |
User-agent: |
Mutt/1.5.20 (2009-12-10) |
On Sat, Sep 02, 2017 at 02:14:59PM +0100, Gavin Smith wrote:
> On Thu, Aug 31, 2017 at 02:37:57PM +0200, Patrice Dumas wrote:
> > Another possibility could be to replace that line by a call to
> > ModulePath, like what is done in tests not depending on t/test_utils.pl,
> > like
> >
> > BEGIN {
> > require Texinfo::ModulePath;
> > Texinfo::ModulePath::init(undef, undef, 'updirs' => 2);
> > }
> >
> > ModulePath will add 'top_srcdir'/tp tp @INC allowing to find
> > t/test_utils.pl.
>
> Is there any way of testing this without installing a new version of
> perl? I tried using taint mode ("perl -T") but this breaks for other
> reasons.
At least on debian, you can add this line in /etc/perl/sitecustomize.pl:
pop @INC if $INC[-1] eq '.' and !$ENV{PERL_USE_UNSAFE_INC};