summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorReini Urban <rurban@cpanel.net>2015-03-11 18:11:53 +0100
committerTony Cook <tony@develop-help.com>2015-11-11 08:56:28 +1100
commit6d0927b2b23683ca2cd17a814d6f15fc32636ed4 (patch)
treef66af03521e11f558fc89ad303a14a7fe84106f8 /ext
parentd96ba2c41dd6d887e3cc426e077f7e452418488a (diff)
downloadperl-6d0927b2b23683ca2cd17a814d6f15fc32636ed4.tar.gz
DynaLoader: extend t/DynaLoader.t to be run from basedir also
This simplifies testing from core.
Diffstat (limited to 'ext')
-rw-r--r--ext/DynaLoader/t/DynaLoader.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/DynaLoader/t/DynaLoader.t b/ext/DynaLoader/t/DynaLoader.t
index fe730b92b5..77fb65d470 100644
--- a/ext/DynaLoader/t/DynaLoader.t
+++ b/ext/DynaLoader/t/DynaLoader.t
@@ -2,7 +2,12 @@
use strict;
use Config;
-require '../../t/test.pl';
+push @INC, '.';
+if (-f 't/test.pl') {
+ require 't/test.pl';
+} else {
+ require '../../t/test.pl';
+}
my %modules;