summaryrefslogtreecommitdiff
path: root/t/test.pl
diff options
context:
space:
mode:
Diffstat (limited to 't/test.pl')
-rw-r--r--t/test.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/test.pl b/t/test.pl
index 735d966533..8eefe874c8 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -364,7 +364,7 @@ sub _quote_args {
}
}
-sub runperl {
+sub _create_runperl { # Create the string to qx in runperl().
my %args = @_;
my $runperl = $^X;
unless ($args{nolib}) {
@@ -433,6 +433,11 @@ sub runperl {
$runperldisplay =~ s/\n/\n\#/g;
print STDERR "# $runperldisplay\n";
}
+ return $runperl;
+}
+
+sub runperl {
+ my $runperl = &_create_runperl;
my $result = `$runperl`;
$result =~ s/\n\n/\n/ if $is_vms; # XXX pipes sometimes double these
return $result;