diff options
-rw-r--r-- | lib/base/t/compile-time.t | 7 | ||||
-rw-r--r-- | lib/base/t/fields-5.6.0.t | 7 | ||||
-rw-r--r-- | lib/base/t/fields-5.8.0.t | 6 |
3 files changed, 20 insertions, 0 deletions
diff --git a/lib/base/t/compile-time.t b/lib/base/t/compile-time.t index 2be51f9de5..f7ffd1f53b 100644 --- a/lib/base/t/compile-time.t +++ b/lib/base/t/compile-time.t @@ -1,5 +1,12 @@ #!/usr/bin/perl -w +BEGIN { + if( $ENV{PERL_CORE} ) { + chdir 't' if -d 't'; + @INC = qw(../lib); + } +} + use strict; use Test::More tests => 3; diff --git a/lib/base/t/fields-5.6.0.t b/lib/base/t/fields-5.6.0.t index 93bca34e2e..819c335021 100644 --- a/lib/base/t/fields-5.6.0.t +++ b/lib/base/t/fields-5.6.0.t @@ -7,6 +7,13 @@ if( $] >= 5.009 ) { exit; } +BEGIN { + if( $ENV{PERL_CORE} ) { + chdir 't' if -d 't'; + @INC = qw(../lib); + } +} + use strict; use vars qw($Total_tests); diff --git a/lib/base/t/fields-5.8.0.t b/lib/base/t/fields-5.8.0.t index 2da141274f..af39d0bde2 100644 --- a/lib/base/t/fields-5.8.0.t +++ b/lib/base/t/fields-5.8.0.t @@ -7,6 +7,12 @@ if( $] >= 5.009 ) { exit; } +BEGIN { + if( $ENV{PERL_CORE} ) { + chdir 't' if -d 't'; + @INC = qw(../lib); + } +} my $w; |