Subject: | No header for failed tests when STDOUT redirected. |
Simple to replicate. When calling runtest() in a script that has STDERR
and STDOUT redirected to file the header isn't printed before the output
of the stats for failed tests.
Perl 5.8.7, disribution rPath linux.
This is a bit of a problem as putting a print for $fmt_top before:
die "Failed $tot->{bad}/$tot->{tests} test scripts, $pct% okay.".
"$subpct\n";
in _show_results() gives a second header when STDOUT is not redirected.