Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: mschwern [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 3.14
Fixed in: (no value)



Subject: TAP::Harness verbose adding numbers where there are none.
I'm debugging Test::Fork using "prove -v" and was perplexed because I saw this... $ prove -l -v t/fork.t t/fork.... 1..10 ok 1 - use Test::Fork; ok 2 - fork() succeeded, child pid 22528 ok 3 - parent one # Running child pid 22528 ok 4 - child 1 ok 5 - child 1 again # child 22528 reaped # Running child pid 22529 ok 6 - child 2 ok 7 - child 2 again # child 22529 reaped ok 8 - fork() succeeded, child pid 22529 ok 9 - parent two ok 10 - use_numbers back on ok All tests successful. but Test::Fork is supposed to turn test numbers off. It turns out prove -v adds numbers in. $ perl -Ilib t/fork.t 1..10 ok 1 - use Test::Fork; ok - fork() succeeded, child pid 22531 ok - parent one # Running child pid 22531 ok - child 1 ok - child 1 again ok - fork() succeeded, child pid 22532 # Running child pid 22532 ok - child 2 ok - child 2 again # child 22531 reaped ok - parent two # reaper(22530) waiting on 22532 # Child 22532 already reaped # child 22532 reaped # child -1 reaped ok 10 - use_numbers back on Please please please don't be helpful. Let me see my raw, unfiltered, uninterpreted test output.
On Wed Oct 15 00:41:16 2008, MSCHWERN wrote: Show quoted text
> I'm debugging Test::Fork using "prove -v" and was perplexed because I > saw this... > > $ prove -l -v t/fork.t > t/fork.... > 1..10 > ok 1 - use Test::Fork; > ok 2 - fork() succeeded, child pid 22528 > ok 3 - parent one > # Running child pid 22528 > ok 4 - child 1 > ok 5 - child 1 again > # child 22528 reaped > # Running child pid 22529 > ok 6 - child 2 > ok 7 - child 2 again > # child 22529 reaped > ok 8 - fork() succeeded, child pid 22529 > ok 9 - parent two > ok 10 - use_numbers back on > ok > All tests successful. > > but Test::Fork is supposed to turn test numbers off. It turns out prove > -v adds numbers in. > > $ perl -Ilib t/fork.t > 1..10 > ok 1 - use Test::Fork; > ok - fork() succeeded, child pid 22531 > ok - parent one > # Running child pid 22531 > ok - child 1 > ok - child 1 again > ok - fork() succeeded, child pid 22532 > # Running child pid 22532 > ok - child 2 > ok - child 2 again > # child 22531 reaped > ok - parent two > # reaper(22530) waiting on 22532 > # Child 22532 already reaped > # child 22532 reaped > # child -1 reaped > ok 10 - use_numbers back on > > Please please please don't be helpful. Let me see my raw, unfiltered, > uninterpreted test output.
This was fixed in r1270.