summaryrefslogtreecommitdiff
path: root/t/porting
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2022-10-24 09:45:55 +0200
committerJames E Keenan <jkeenan@cpan.org>2022-11-06 07:11:53 -0500
commit36667169c25b9ddadd6e06a4c620730fbe42a294 (patch)
tree33c871ad2a229d22cb78d3b7db1040349314516b /t/porting
parent364f70250381868933181f64d322e0936f4e8ba8 (diff)
downloadperl-36667169c25b9ddadd6e06a4c620730fbe42a294.tar.gz
allow porting/corelist.t to be run from root
Diffstat (limited to 't/porting')
-rw-r--r--t/porting/corelist.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/porting/corelist.t b/t/porting/corelist.t
index 2ae703f6f9..1b3af5c816 100644
--- a/t/porting/corelist.t
+++ b/t/porting/corelist.t
@@ -1,7 +1,9 @@
#!perl -w
# Check that the current version of perl exists in Module-CoreList data
-
+BEGIN {
+ push @INC, "." if -e "TestInit.pm";
+}
use TestInit qw(T);
use strict;
use Config;