diff options
author | Mike Guy <mjtg@cam.ac.uk> | 2000-08-25 16:15:59 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-08-29 02:09:53 +0000 |
commit | 20822f61cc01ab34be1e17db483aceb9d5ec8fb7 (patch) | |
tree | e81ff4ef8b435f718d8ca14ebf2df9dbf32a3601 /t/io | |
parent | 4009639630e1c5aaaff711ab11d5e4837d5bfe2c (diff) | |
download | perl-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/io')
-rwxr-xr-x | t/io/argv.t | 2 | ||||
-rwxr-xr-x | t/io/fs.t | 2 | ||||
-rwxr-xr-x | t/io/open.t | 2 | ||||
-rwxr-xr-x | t/io/openpid.t | 2 | ||||
-rwxr-xr-x | t/io/pipe.t | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/t/io/argv.t b/t/io/argv.t index 2595fa681c..2b8f23b426 100755 --- a/t/io/argv.t +++ b/t/io/argv.t @@ -2,7 +2,7 @@ BEGIN { chdir 't' if -d 't'; - unshift @INC, '../lib'; + @INC = '../lib'; } print "1..21\n"; @@ -4,7 +4,7 @@ BEGIN { chdir 't' if -d 't'; - unshift @INC, '../lib'; + @INC = '../lib'; } use Config; diff --git a/t/io/open.t b/t/io/open.t index 30db5988b6..b224cceb77 100755 --- a/t/io/open.t +++ b/t/io/open.t @@ -2,7 +2,7 @@ BEGIN { chdir 't' if -d 't'; - unshift @INC, '../lib'; + @INC = '../lib'; } # $RCSfile$ diff --git a/t/io/openpid.t b/t/io/openpid.t index 80c6bde5d1..d8326d8e63 100755 --- a/t/io/openpid.t +++ b/t/io/openpid.t @@ -9,7 +9,7 @@ BEGIN { chdir 't' if -d 't'; - unshift @INC, '../lib'; + @INC = '../lib'; if ($^O eq 'dos') { print "1..0 # Skip: no multitasking\n"; exit 0; diff --git a/t/io/pipe.t b/t/io/pipe.t index 4559624cca..96935e3f88 100755 --- a/t/io/pipe.t +++ b/t/io/pipe.t @@ -2,7 +2,7 @@ BEGIN { chdir 't' if -d 't'; - unshift @INC, '../lib'; + @INC = '../lib'; require Config; import Config; unless ($Config{'d_fork'}) { print "1..0 # Skip: no fork\n"; |