Integrate mainline
[p5sagit/p5-mst-13.2.git] / t / test.pl
index 8eefe87..1a16fba 100644 (file)
--- a/t/test.pl
+++ b/t/test.pl
@@ -366,7 +366,7 @@ sub _quote_args {
 
 sub _create_runperl { # Create the string to qx in runperl().
     my %args = @_;
-    my $runperl = $^X;
+    my $runperl = $^X =~ m/\s/ ? qq{"$^X"} : $^X;
     unless ($args{nolib}) {
        if ($is_macos) {
            $runperl .= ' -I::lib';