Subject: | Future-proof Module-Runtime tests against removal of default '.' from @INC. |
See discussion referenced in commit message of patch attached. Patch was drawn against HEAD of master at git://git.fysh.org/zefram/Module-Runtime.git.
Thank you very much.
Jim Keenan
Subject: | 0001-Account-for-removal-of-default-.-from-INC.patch |
From e65daf341af12b32016d327d70182be5bc4f7d8e Mon Sep 17 00:00:00 2001
From: James E Keenan <jkeenan@cpan.org>
Date: Mon, 14 Nov 2016 16:48:01 -0500
Subject: [PATCH] Account for removal of default '.' from @INC.
See: http://www.nntp.perl.org/group/perl.perl5.porters/2016/11/msg241020.html:
"In Perl 5.26, it will no longer be a safe assumption to assume . is in @INC.
This is a good move towards a more secure Perl, but will break the
installation of many CPAN modules."
This patch adds '.' to @INC for those test programs which need to locate
t/Simple.pm.
---
t/rm.t | 1 +
t/um.t | 1 +
t/upo.t | 1 +
t/upo_overridden.t | 1 +
4 files changed, 4 insertions(+)
diff --git a/t/rm.t b/t/rm.t
index eb236d4..db50661 100644
--- a/t/rm.t
+++ b/t/rm.t
@@ -1,5 +1,6 @@
use warnings;
use strict;
+use lib ('.');
use Test::More tests => 26;
diff --git a/t/um.t b/t/um.t
index a4c225a..c43db91 100644
--- a/t/um.t
+++ b/t/um.t
@@ -1,5 +1,6 @@
use warnings;
use strict;
+use lib ('.');
use Test::More tests => 37;
diff --git a/t/upo.t b/t/upo.t
index eeea528..87a9e7a 100644
--- a/t/upo.t
+++ b/t/upo.t
@@ -1,5 +1,6 @@
use warnings;
use strict;
+use lib ('.');
use Test::More tests => 42;
diff --git a/t/upo_overridden.t b/t/upo_overridden.t
index 2cd9cc1..4eb9e6e 100644
--- a/t/upo_overridden.t
+++ b/t/upo_overridden.t
@@ -1,5 +1,6 @@
use warnings;
use strict;
+use lib ('.');
if("$]" < 5.007002) {
require Test::More;
--
2.7.4