diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-14 21:09:48 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-11-14 21:09:48 +0000 |
commit | f93a5f0713380ffacfb1cc418ab7b0f313757306 (patch) | |
tree | a525c6295f8bddeccb269d3331efc73c6034ccdd /t/test.pl | |
parent | ee2f7564be77581fd9f8286aa19a5636c1c1d015 (diff) | |
download | perl-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.pl | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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; } } |