7 # Test that options in PERL5OPT are propogated to tainted tests
10 use Test::More ( $^O eq 'VMS' ? ( skip_all => 'VMS' ) : ( tests => 1 ) );
15 my $lib_path = join( ', ', map "'$_'", grep !ref, grep defined, @INC );
18 my ( $test_template, @args ) = @_;
20 my $test_file = 'temp_test.tmp';
22 open TEST, ">$test_file" or die $!;
23 printf TEST $test_template, @args;
26 my $p = TAP::Parser->new(
27 { source => $test_file,
29 # Test taint when there's spaces in a -I path
30 switches => [q["-Ifoo bar"]],
40 local $ENV{PERL5OPT} = $ENV{PERL_CORE} ? '-I../../lib -Mstrict' : '-Mstrict';
41 run_test_file(<<'END');
45 print $INC{'strict.pm'} ? "ok 1\n" : "not ok 1\n";