summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRenee Baecker <renee.baecker@smart-websolutions.de>2008-12-26 00:15:25 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2008-12-26 00:15:25 +0100
commitccb8f6a64f3dd06b4360bc27c194b28e6766a6ad (patch)
tree9e08c17ffef10250fc4538f5002730c529c1d893 /t
parent0147cd53faa57ffcd05cb0455b952fbfbe63b0b2 (diff)
downloadperl-ccb8f6a64f3dd06b4360bc27c194b28e6766a6ad.tar.gz
[perl #6665] Different behavior using the -Idir option on the command line and inside a perl script
Adds the -Idir at the beginning of @INC. (Plus a test by rgs -- check that -I does not add directories at the end of the @INC array anymore)
Diffstat (limited to 't')
-rw-r--r--t/run/switchI.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/run/switchI.t b/t/run/switchI.t
index 41192cd765..cfb0f6e949 100644
--- a/t/run/switchI.t
+++ b/t/run/switchI.t
@@ -15,11 +15,11 @@ my $Is_VMS = $^O eq 'VMS';
my $lib;
$lib = $Is_MacOS ? ':Bla:' : 'Bla';
-ok(grep { $_ eq $lib } @INC);
+ok(grep { $_ eq $lib } @INC[0..($#INC-1)]);
SKIP: {
skip 'Double colons not allowed in dir spec', 1 if $Is_VMS;
$lib = $Is_MacOS ? 'Foo::Bar:' : 'Foo::Bar';
- ok(grep { $_ eq $lib } @INC);
+ ok(grep { $_ eq $lib } @INC[0..($#INC-1)]);
}
$lib = $Is_MacOS ? ':Bla2:' : 'Bla2';