Test-More / TB2

Test::Builder version 2, the next generation of building testing modules in Perl
Other
1 stars 0 forks source link

Move $builder->{Original_Pid} into History #180

Closed schwernbot closed 10 years ago

schwernbot commented 10 years ago

From: @schwern Date: Monday Nov 14, 2011 at 04:00 GMT Orig: https://github.com/Test-More/test-more/issues/200

Test::Builder currently stores the PID it was created by in $builder->{Original_Pid}. This is useful to know if it's exiting as a child and if it should output the ending commentary.

Right now it informs the TAP formatter if it's in a child. The History should contain this information and the TAP formatter should ask History.

schwernbot commented 10 years ago

From: @schwern Date: Tuesday Nov 15, 2011 at 06:53 GMT Orig: https://github.com/Test-More/test-more/issues/200#issuecomment-2741607

That does everything but the last two bits. Test::Builder->_ending still controls if the TAP formatter does its ending summary. I'm going to keep it that way for the moment instead of pushing the assumption that child processes should not spit out ending information into the formatter.