From: Rafael Garcia-Suarez Date: Fri, 25 Jun 2004 08:28:34 +0000 (+0000) Subject: Fix the Cwd tests for the core. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=39f7733f7d919f26b78bb3c93d85c8b5806102bc;p=p5sagit%2Fp5-mst-13.2.git Fix the Cwd tests for the core. p4raw-id: //depot/perl@22993 --- diff --git a/ext/Cwd/t/cwd.t b/ext/Cwd/t/cwd.t index 951126f..816775e 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 9c6748e..be0e374 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;