X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fpragma%2Fstrict.t;h=2b8c58735f548806688b10e39deeaad5769d294d;hb=b295d1132eed0f33e5e8fda2cd65ee1297fdabdb;hp=75856971fa2de9aa0ddbda1d625b94ff8d079d01;hpb=d8b8f155f8db246fedcbc36ea9ae6374f7033c78;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/pragma/strict.t b/t/pragma/strict.t index 7585697..2b8c587 100755 --- a/t/pragma/strict.t +++ b/t/pragma/strict.t @@ -2,13 +2,14 @@ BEGIN { chdir 't' if -d 't'; - @INC = '../lib'; + unshift @INC, '../lib'; $ENV{PERL5LIB} = '../lib'; } $| = 1; my $Is_VMS = $^O eq 'VMS'; +my $Is_MSWin32 = $^O eq 'MSWin32'; my $tmpfile = "tmp0000"; my $i = 0 ; 1 while -f ++$tmpfile; @@ -66,7 +67,9 @@ for (@prgs){ close TEST; my $results = $Is_VMS ? `MCR $^X $switch $tmpfile` : - `sh -c './perl $switch $tmpfile' 2>&1`; + $Is_MSWin32 ? + `.\\perl -I../lib $switch $tmpfile 2>&1` : + `./perl $switch $tmpfile 2>&1`; my $status = $?; $results =~ s/\n+$//; # allow expected output to be written as if $prog is on STDIN