diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-06-25 08:28:34 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2004-06-25 08:28:34 +0000 |
commit | 39f7733f7d919f26b78bb3c93d85c8b5806102bc (patch) | |
tree | 10aa3bc4241684f6e74a7ea72267455a5fda3582 | |
parent | a8c6c617075a77facc3560cfdaa8948a894f9baf (diff) | |
download | perl-39f7733f7d919f26b78bb3c93d85c8b5806102bc.tar.gz |
Fix the Cwd tests for the core.
p4raw-id: //depot/perl@22993
-rw-r--r-- | ext/Cwd/t/cwd.t | 2 | ||||
-rw-r--r-- | 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; |