Skip Menu |

This queue is for tickets about the Test-Harness CPAN distribution.

Report information
The Basics
Id: 17969
Status: resolved
Priority: 0/
Queue: Test-Harness

Owner: andy [...]
Requestors: David [...] Vindicia.Com

Bug Information
Severity: Unimportant
Broken in: 2.48
Fixed in: (no value)

Subject: No header for failed tests when STDOUT redirected.
Download (untitled) / with headers
text/plain 449b
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.
All of the I/O is revised in 2.99 so this should now be fixed.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to