summaryrefslogtreecommitdiff
path: root/t/test.pl
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2013-07-16 14:57:20 +1000
committerTony Cook <tony@develop-help.com>2013-07-23 10:02:26 +1000
commit684b0ecaad281760b04dd2da317ee0459cafebf6 (patch)
tree0642303e097a8f25ef7041b3cc9bba231c789e3c /t/test.pl
parent24ffa3099a4f0f4904129f4f4633846134d0b51f (diff)
downloadperl-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.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/test.pl b/t/test.pl
index 41efbb83ef..eb4f868fa4 100644
--- a/t/test.pl
+++ b/t/test.pl
@@ -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])
);