diff options
Diffstat (limited to 'ext/DB_File')
-rw-r--r-- | ext/DB_File/t/db-btree.t | 9 | ||||
-rw-r--r-- | ext/DB_File/t/db-hash.t | 9 | ||||
-rw-r--r-- | ext/DB_File/t/db-recno.t | 9 |
3 files changed, 3 insertions, 24 deletions
diff --git a/ext/DB_File/t/db-btree.t b/ext/DB_File/t/db-btree.t index d6966da6a0..0df890436b 100644 --- a/ext/DB_File/t/db-btree.t +++ b/ext/DB_File/t/db-btree.t @@ -1,18 +1,11 @@ #!./perl -w - -BEGIN { - unless(grep /blib/, @INC) { - chdir 't' if -d 't'; - @INC = '../lib' if -d '../lib'; - } -} use warnings; use strict; use Config; BEGIN { - if(-d "lib" && -f "TEST") { + if($ENV{PERL_CORE}) { if ($Config{'extensions'} !~ /\bDB_File\b/ ) { print "1..0 # Skip: DB_File was not built\n"; exit 0; diff --git a/ext/DB_File/t/db-hash.t b/ext/DB_File/t/db-hash.t index 889bbe91ff..4168362531 100644 --- a/ext/DB_File/t/db-hash.t +++ b/ext/DB_File/t/db-hash.t @@ -1,18 +1,11 @@ #!./perl - -BEGIN { - unless(grep /blib/, @INC) { - chdir 't' if -d 't'; - @INC = '../lib' if -d '../lib'; - } -} use warnings; use strict; use Config; BEGIN { - if(-d "lib" && -f "TEST") { + if($ENV{PERL_CORE}) { if ($Config{'extensions'} !~ /\bDB_File\b/ ) { print "1..0 # Skip: DB_File was not built\n"; exit 0; diff --git a/ext/DB_File/t/db-recno.t b/ext/DB_File/t/db-recno.t index 3eb69688b7..365abfd520 100644 --- a/ext/DB_File/t/db-recno.t +++ b/ext/DB_File/t/db-recno.t @@ -1,18 +1,11 @@ #!./perl -w - -BEGIN { - unless(grep /blib/, @INC) { - chdir 't' if -d 't'; - @INC = '../lib' if -d '../lib'; - } -} use warnings; use strict; use Config; BEGIN { - if(-d "lib" && -f "TEST") { + if($ENV{PERL_CORE}) { if ($Config{'extensions'} !~ /\bDB_File\b/ ) { print "1..0 # Skip: DB_File was not built\n"; exit 0; |