diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-07-27 15:48:21 +0200 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2009-07-27 15:48:21 +0200 |
commit | 8e2e2108bd3e781e0030bedb33fdf9102a8de1c7 (patch) | |
tree | 676266d3c48daa7daae11c369701a5fbcf399bc1 | |
parent | c5836baf9b57063ff2623ef7930432d0b26de3bb (diff) | |
download | perl-8e2e2108bd3e781e0030bedb33fdf9102a8de1c7.tar.gz |
Add core test boilerplate to some base.pm tests
-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; |