fresh_perl_is() defaults to automatically prefixing the test perl's arguments
with -I../lib, which (now) causes miniperl to find ../lib/buildcustomize.pl,
which (when found and run) resets @INC, perturbing the tests. Suppressing the
automatic addition of -I../lib avoids these problems.
Also, fold together the two adjacent BEGIN blocks at the start of the script.
chdir 't' if -d 't';
unshift @INC, '../lib';
require './test.pl'; # for which_perl() etc
-}
-
-BEGIN {
plan(4);
}
$lib = 'Bla2';
fresh_perl_is("print grep { \$_ eq '$lib' } \@INC[0..(\$#INC-1)]", $lib,
- { switches => ['-IBla2'] }, '-I');
+ { switches => ['-IBla2'], nolib => 1 }, '-I');
SKIP: {
skip 'Double colons not allowed in dir spec', 1 if $Is_VMS;
$lib = 'Foo::Bar2';
fresh_perl_is("print grep { \$_ eq '$lib' } \@INC", $lib,
- { switches => ['-IFoo::Bar2'] }, '-I with colons');
+ { switches => ['-IFoo::Bar2'], nolib => 1 }, '-I with colons');
}