summaryrefslogtreecommitdiff
path: root/t/test.pl
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-14 21:09:48 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-14 21:09:48 +0000
commitf93a5f0713380ffacfb1cc418ab7b0f313757306 (patch)
treea525c6295f8bddeccb269d3331efc73c6034ccdd /t/test.pl
parentee2f7564be77581fd9f8286aa19a5636c1c1d015 (diff)
downloadperl-f93a5f0713380ffacfb1cc418ab7b0f313757306.tar.gz
test.pl tweaks from Rafael and Pudge (assuming I deciphered
Pudge correctly). p4raw-id: //depot/perl@13001
Diffstat (limited to 't/test.pl')
-rw-r--r--t/test.pl12
1 files changed, 6 insertions, 6 deletions
diff --git a/t/test.pl b/t/test.pl
index 9a95de19e3..90e7ed5275 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -199,13 +199,13 @@ sub _quote_args {
sub runperl {
my %args = @_;
my $runperl = $^X;
- if (defined $args{switches}) {
+ if ($args{switches}) {
_quote_args(\$runperl, $args{switches});
}
- unless (defined $args{nolib}) {
- if ($is_macos && $args{stderr}) {
+ unless ($args{nolib}) {
+ if ($is_macos) {
$runperl .= ' -I::lib';
- # Use UNIX style error message instead of MPW style.
+ # Use UNIX style error messages instead of MPW style.
$runperl .= ' -MMac::err=unix' if $args{stderr};
}
else {
@@ -224,11 +224,11 @@ sub runperl {
}
if (defined $args{stdin}) {
if ($is_mswin || $is_netware || $is_vms) {
- $runperl = qq{$^X -e "print q(} .
+ $runperl = qq{$^X -e "print qq(} .
$args{stdin} . q{)" | } . $runperl;
}
else {
- $runperl = qq{$^X -e 'print q(} .
+ $runperl = qq{$^X -e 'print qq(} .
$args{stdin} . q{)' | } . $runperl;
}
}