X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Ftest.pl;h=cdfa018fccce80defe39d500af9ceb69684ab83e;hb=8498a5184cf05e744bf72b6e3f846f8deac7a425;hp=0f2f7a0077e4b8ab729867779184ed3bd550be1a;hpb=6f998dadd365dcf88776abd404d1a47b068400ff;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/test.pl b/t/test.pl index 0f2f7a0..cdfa018 100644 --- a/t/test.pl +++ b/t/test.pl @@ -506,7 +506,7 @@ sub runperl { $ENV{PATH} =~ /(.*)/s; local $ENV{PATH} = join $sep, grep { $_ ne "" and $_ ne "." and - ($is_mswin or !((stat$_)[2]&0022)) } + ($is_mswin or !(stat && (stat _)[2]&0022)) } split quotemeta ($sep), $1; $runperl =~ /(.*)/s;