From: Vincent Pit Date: Mon, 23 Mar 2015 19:15:04 +0000 (-0300) Subject: Update VPIT::TestHelpers to 6ca15279 X-Git-Tag: v0.27~13 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=76f7748a793b1d04798c743cc70b46a1bf657300;p=perl%2Fmodules%2FScope-Upper.git Update VPIT::TestHelpers to 6ca15279 --- diff --git a/t/lib/VPIT/TestHelpers.pm b/t/lib/VPIT/TestHelpers.pm index 6942420..475a86a 100644 --- a/t/lib/VPIT/TestHelpers.pm +++ b/t/lib/VPIT/TestHelpers.pm @@ -153,7 +153,12 @@ sub run_perl { $ENV{SystemRoot} = $SystemRoot if $^O eq 'MSWin32' and defined $SystemRoot; $ENV{PATH} = $PATH if $^O eq 'cygwin' and defined $PATH; - system { $^X } $^X, '-T', map("-I$_", @INC), '-e', $code; + my $perl = $^X; + unless (-e $perl and -x $perl) { + $perl = $Config::Config{perlpath}; + } + + system { $perl } $perl, '-T', map("-I$_", @INC), '-e', $code; } sub init_threads {