summaryrefslogtreecommitdiff
path: root/t/lib
diff options
context:
space:
mode:
Diffstat (limited to 't/lib')
-rw-r--r--t/lib/source_tests/source11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/lib/source_tests/source b/t/lib/source_tests/source
index f634d9cbdb..6d469f4581 100644
--- a/t/lib/source_tests/source
+++ b/t/lib/source_tests/source
@@ -1,6 +1,15 @@
#!/usr/bin/perl -wT
-use lib 't/lib';
+BEGIN {
+ if ( $ENV{PERL_CORE} ) {
+ chdir 't';
+ @INC = ( '../lib', 'lib' );
+ }
+ else {
+ unshift @INC, 't/lib';
+ }
+}
+
use Test::More tests => 1;
ok 1;