summaryrefslogtreecommitdiff
path: root/t/comp
diff options
context:
space:
mode:
authorMike Guy <mjtg@cam.ac.uk>2000-08-25 16:15:59 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2000-08-29 02:09:53 +0000
commit20822f61cc01ab34be1e17db483aceb9d5ec8fb7 (patch)
treee81ff4ef8b435f718d8ca14ebf2df9dbf32a3601 /t/comp
parent4009639630e1c5aaaff711ab11d5e4837d5bfe2c (diff)
downloadperl-20822f61cc01ab34be1e17db483aceb9d5ec8fb7.tar.gz
Use minimal @INC in tests, most of the time just '../lib',
so that we simply can't pick up stuff from other Perls than the one we are testing. Pointed out by Subject: Re: [PATCH: 6757] make new Storable tests forgiving of places where not built Message-Id: <E13SKH1-00031D-00@virgo.cus.cam.ac.uk> p4raw-id: //depot/perl@6874
Diffstat (limited to 't/comp')
-rwxr-xr-xt/comp/bproto.t2
-rwxr-xr-xt/comp/colon.t2
-rwxr-xr-xt/comp/cpp.t2
-rwxr-xr-xt/comp/proto.t2
-rwxr-xr-xt/comp/require.t3
-rwxr-xr-xt/comp/use.t2
6 files changed, 7 insertions, 6 deletions
diff --git a/t/comp/bproto.t b/t/comp/bproto.t
index 01efb8401c..70748be551 100755
--- a/t/comp/bproto.t
+++ b/t/comp/bproto.t
@@ -5,7 +5,7 @@
BEGIN {
chdir 't' if -d 't';
- unshift @INC, '../lib';
+ @INC = '../lib';
}
print "1..10\n";
diff --git a/t/comp/colon.t b/t/comp/colon.t
index dee5330ff2..d2c64fe4c5 100755
--- a/t/comp/colon.t
+++ b/t/comp/colon.t
@@ -9,7 +9,7 @@
BEGIN {
chdir 't' if -d 't';
- unshift @INC, '../lib';
+ @INC = '../lib';
}
use strict;
diff --git a/t/comp/cpp.t b/t/comp/cpp.t
index bbff38c553..5b061ee181 100755
--- a/t/comp/cpp.t
+++ b/t/comp/cpp.t
@@ -4,7 +4,7 @@
BEGIN {
chdir 't' if -d 't';
- unshift @INC, '../lib';
+ @INC = '../lib';
}
use Config;
diff --git a/t/comp/proto.t b/t/comp/proto.t
index a77db9b4b9..f9731ee489 100755
--- a/t/comp/proto.t
+++ b/t/comp/proto.t
@@ -11,7 +11,7 @@
BEGIN {
chdir 't' if -d 't';
- unshift @INC, '../lib';
+ @INC = '../lib';
}
use strict;
diff --git a/t/comp/require.t b/t/comp/require.t
index bfd4a37fc9..eaea3ad5f6 100755
--- a/t/comp/require.t
+++ b/t/comp/require.t
@@ -2,7 +2,8 @@
BEGIN {
chdir 't' if -d 't';
- unshift @INC, ('.', '../lib');
+ @INC = '.';
+ push @INC, '../lib';
}
# don't make this lexical
diff --git a/t/comp/use.t b/t/comp/use.t
index 1f5fae39a2..fb597770d0 100755
--- a/t/comp/use.t
+++ b/t/comp/use.t
@@ -2,7 +2,7 @@
BEGIN {
chdir 't' if -d 't';
- unshift @INC, '../lib';
+ @INC = '../lib';
}
print "1..27\n";