++ed by:
RRWO JPINKHAM SYP JRMASH TINITA

94 PAUSE users
66 non-PAUSE users.

Chad Granum
and 1 contributors

NAME

Test::Builder::Fork - Fork support for Test::Builder

DESCRIPTION

This module is used by Test::Builder::Stream to support forking.

SYNOPSYS

    use Test::Builder::Fork;

    my $f = Test::Builder::Fork;

    if ($pid = fork) {
        waitpid($pid, 0);
        $f->cull;
    }
    else {
        $f->handle(Test::Builder::Event::Ok->new(bool => 1);
    }

    ...

METHODS

$f = $class->new

Create a new instance

$f->pid

Original PID in which the fork object was created.

$f->tmpdir

Temp dir used to share events between procs

$f->handle($event)

Send a event object to the parent

$f->cull

Retrieve event objects and send them to the stream

SEE ALSO

Child - Makes forking easier.

AUTHORS

Chad Granum <exodist@cpan.org>

SOURCE

The source code repository for Test::More can be found at http://github.com/Test-More/test-more/.

COPYRIGHT

Copyright 2014 Chad Granum <exodist7@gmail.com>.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://www.perl.com/perl/misc/Artistic.html