develooper Front page | perl.perl5.porters | Postings from August 2016

[perl #128953] [PATCH] Use set_up_inc for several unit tests

Thread Previous
From:
Father Chrysostomos via RT
Date:
August 15, 2016 23:06
Subject:
[perl #128953] [PATCH] Use set_up_inc for several unit tests
Message ID:
rt-4.0.24-19878-1471302352-710.128953-15-0@perl.org
On Mon Aug 15 15:31:33 2016, atoomic@cpan.org wrote:
> Note: some tests cannot use 'require test.pl',
> unshfit is then used for them.

unshift is not acceptable when tests are run under perl proper (as opposed to miniperl), because directories in the default @INC may include existing directories if there is already a blead installation.  Tests should not be loading things from outside the build directory.  Doing so leads to problems that are very hard to diagnose.  I know, because I’ve been there before.

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=128953

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About