schwern/test-more — Issue #200: Move $builder->{Original_Pid} into History
Author: schwern
Created: 2011-11-14 04:00:25+00:00
State: open
Labels: DO IT, Easy, Formatter, History, Test-Builder2

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.

* Remove $builder->{Original_Pid}
* Add History->original_pid
* Add History->is_child_process
* Change the TAP formatter to ask History before issuing an output summary
* Remove the code to do so from Test::Builder->_ending