[perl #116190] feed an empty stdin to run_multiple_progs() programs
authorTony Cook <tony@develop-help.com>
Tue, 16 Jul 2013 04:57:20 +0000 (14:57 +1000)
committerTony Cook <tony@develop-help.com>
Tue, 23 Jul 2013 00:02:26 +0000 (10:02 +1000)
Two tests for -a were attempting to read stdin and blocking with the -a
implies -n change.

t/test.pl

index 41efbb8..eb4f868 100644 (file)
--- 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])
                                );