4 if( $ENV{PERL_CORE} ) {
9 # ./lib is there so t/lib can be seen even after we chdir.
10 unshift @INC, 't/lib', './lib';
15 use Test::More tests => 5;
18 # non-core tests will have blib in their path. We remove it
19 # and just use the one in lib/.
20 unless( $ENV{PERL_CORE} ) {
21 @INC = grep !/blib/, @INC;
22 unshift @INC, '../lib';
26 my @blib_paths = grep /blib/, @INC;
27 is( @blib_paths, 0, 'No blib dirs yet in @INC' );
29 use_ok( 'ExtUtils::testlib' );
31 @blib_paths = grep { /blib/ } @INC;
32 is( @blib_paths, 2, 'ExtUtils::testlib added two @INC dirs!' );
33 ok( !(grep !File::Spec->file_name_is_absolute($_), @blib_paths),
34 ' and theyre absolute');
36 eval { eval "# @INC"; };
37 is( $@, '', '@INC is not tainted' );