The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

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::Result::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 results between procs

$f->handle($result)

Send a result object to the parent

$f->cull

Retrieve result 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