summaryrefslogtreecommitdiff
path: root/t/test.pl
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-05-11 17:44:28 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-05-11 17:44:28 +0000
commit4cd2bd1f390724a103e72b993d7f67fb405628ad (patch)
tree455164c04057671fb3d5aa316c92c23e580f51d1 /t/test.pl
parent61bdadae648d36c1e21a073fae0f539b8ae699bf (diff)
downloadperl-4cd2bd1f390724a103e72b993d7f67fb405628ad.tar.gz
Separate the creation of the command to run by
runperl() into its own function, _create_runperl(). p4raw-id: //depot/perl@19489
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;