projects
/
perl
/
modules
/
Scope-Upper.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
142a069
)
Update VPIT::TestHelpers to 4eeb5afc
author
Vincent Pit <vince@profvince.com>
Tue, 24 Mar 2015 02:24:10 +0000 (23:24 -0300)
committer
Vincent Pit <vince@profvince.com>
Tue, 24 Mar 2015 02:24:10 +0000 (23:24 -0300)
t/lib/VPIT/TestHelpers.pm
patch
|
blob
|
history
diff --git
a/t/lib/VPIT/TestHelpers.pm
b/t/lib/VPIT/TestHelpers.pm
index 475a86a47c4e6636199f2db4394026ef0fd2277c..b8623c536b65a652df5b5d01fdb6e980f95e6ee5 100644
(file)
--- 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<SystemRoot PATH>};
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;