diff options
author | Tony Cook <tony@develop-help.com> | 2013-07-16 14:57:20 +1000 |
---|---|---|
committer | Tony Cook <tony@develop-help.com> | 2013-07-23 10:02:26 +1000 |
commit | 684b0ecaad281760b04dd2da317ee0459cafebf6 (patch) | |
tree | 0642303e097a8f25ef7041b3cc9bba231c789e3c /t/test.pl | |
parent | 24ffa3099a4f0f4904129f4f4633846134d0b51f (diff) | |
download | perl-684b0ecaad281760b04dd2da317ee0459cafebf6.tar.gz |
[perl #116190] feed an empty stdin to run_multiple_progs() programs
Two tests for -a were attempting to read stdin and blocking with the -a
implies -n change.
Diffstat (limited to 't/test.pl')
-rw-r--r-- | t/test.pl | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1134,7 +1134,8 @@ sub run_multiple_progs { print $fh "\n#line 1\n"; # So the line numbers don't get messed up. print $fh $prog,"\n"; close $fh or die "Cannot close $tmpfile: $!"; - my $results = runperl( stderr => 1, progfile => $tmpfile, $up + my $results = runperl( stderr => 1, progfile => $tmpfile, + stdin => '', $up ? (switches => ["-I$up/lib", $switch], nolib => 1) : (switches => [$switch]) ); |