summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-06-25 08:28:34 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2004-06-25 08:28:34 +0000
commit39f7733f7d919f26b78bb3c93d85c8b5806102bc (patch)
tree10aa3bc4241684f6e74a7ea72267455a5fda3582
parenta8c6c617075a77facc3560cfdaa8948a894f9baf (diff)
downloadperl-39f7733f7d919f26b78bb3c93d85c8b5806102bc.tar.gz
Fix the Cwd tests for the core.
p4raw-id: //depot/perl@22993
-rw-r--r--ext/Cwd/t/cwd.t2
-rw-r--r--ext/Cwd/t/taint.t5
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;