From: Vincent Pit Date: Tue, 24 Mar 2015 02:24:10 +0000 (-0300) Subject: Update VPIT::TestHelpers to 4eeb5afc X-Git-Tag: v0.27~9 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=0781a118e6641a87b17bb1a846c8f7d93d6bfa1c;p=perl%2Fmodules%2FScope-Upper.git Update VPIT::TestHelpers to 4eeb5afc --- diff --git a/t/lib/VPIT/TestHelpers.pm b/t/lib/VPIT/TestHelpers.pm index 475a86a..b8623c5 100644 --- a/t/lib/VPIT/TestHelpers.pm +++ b/t/lib/VPIT/TestHelpers.pm @@ -144,6 +144,10 @@ sub load_or_skip_all { sub run_perl { my $code = shift; + if ($code =~ /"/) { + die 'Double quotes in evaluated code are not portable'; + } + my ($SystemRoot, $PATH) = @ENV{qw}; my $ld_name = $Config::Config{ldlibpthname}; my $ldlibpth = $ENV{$ld_name}; @@ -156,6 +160,9 @@ sub run_perl { my $perl = $^X; unless (-e $perl and -x $perl) { $perl = $Config::Config{perlpath}; + unless (-e $perl and -x $perl) { + return undef; + } } system { $perl } $perl, '-T', map("-I$_", @INC), '-e', $code;