From 39f7733f7d919f26b78bb3c93d85c8b5806102bc Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Fri, 25 Jun 2004 08:28:34 +0000 Subject: Fix the Cwd tests for the core. p4raw-id: //depot/perl@22993 --- ext/Cwd/t/cwd.t | 2 +- ext/Cwd/t/taint.t | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ext/Cwd/t/cwd.t b/ext/Cwd/t/cwd.t index 951126f196..816775e6e3 100644 --- a/ext/Cwd/t/cwd.t +++ b/ext/Cwd/t/cwd.t @@ -3,7 +3,7 @@ BEGIN { chdir 't' if -d 't'; if ($ENV{PERL_CORE}) { - unshift @INC, '../lib'; + @INC = '../lib'; } } use Cwd; diff --git a/ext/Cwd/t/taint.t b/ext/Cwd/t/taint.t index 9c6748e63a..be0e374510 100644 --- a/ext/Cwd/t/taint.t +++ b/ext/Cwd/t/taint.t @@ -1,10 +1,13 @@ #!./perl -Tw # Testing Cwd under taint mode. -use Cwd; BEGIN { chdir 't' if -d 't'; + if ($ENV{PERL_CORE}) { + @INC = '../lib'; + } } +use Cwd; use strict; use Test::More tests => 16; -- cgit v1.2.1