diff options
-rw-r--r-- | lib/Exporter.t | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Exporter.t b/lib/Exporter.t index c90a4608d9..2fbfcfa43b 100644 --- a/lib/Exporter.t +++ b/lib/Exporter.t @@ -1,8 +1,10 @@ -#!./perl -w +#!perl -w BEGIN { - chdir 't' if -d 't'; - @INC = '../lib'; + if( $ENV{PERL_CORE} ) { + chdir 't' if -d 't'; + @INC = '../lib'; + } } # Can't use Test::Simple/More, they depend on Exporter. |