public
Description: Test::Fork
Homepage:
Clone URL: git://github.com/tokuhirom/test-sharedfork.git
name age message
file .gitignore Wed Mar 25 02:30:18 -0700 2009 better tests, added docs, etc. [tokuhirom]
file .shipit Thu Oct 15 21:09:33 -0700 2009 added git.push_to [tokuhirom]
file Changes Mon Dec 14 18:15:02 -0800 2009 Checking in changes prior to tagging of version... [tokuhirom]
file MANIFEST.SKIP Wed Mar 25 02:30:18 -0700 2009 better tests, added docs, etc. [tokuhirom]
file Makefile.PL Sat Dec 12 21:46:14 -0800 2009 Merge branch 'master' of github.com:tokuhirom/t... [tokuhirom]
file README Wed Mar 25 02:50:32 -0700 2009 arggghhhhhhh Test::Fork is schwern's namespace... [tokuhirom]
file README.mkdn Sat Oct 17 10:02:18 -0700 2009 generate README.mkdn [tokuhirom]
directory lib/ Wed Dec 16 04:59:26 -0800 2009 this module requires perl 5.8 or later [tokuhirom]
directory t/ Sat Dec 12 22:15:44 -0800 2009 Checking in changes prior to tagging of version... [tokuhirom]
directory xt/ Sun Oct 18 07:51:11 -0700 2009 added FAQ as stopword [tokuhirom]
README.mkdn

NAME

Test::SharedFork - fork test

SYNOPSIS

use Test::More tests => 200;
use Test::SharedFork;

my $pid = fork();
if ($pid == 0) {
    # child
    ok 1, "child $_" for 1..100;
} elsif ($pid) {
    # parent
    ok 1, "parent $_" for 1..100;
    waitpid($pid, 0);
} else {
    die $!;
}

DESCRIPTION

Test::SharedFork is utility module for Test::Builder. This module makes forking test!

This module merges test count with parent process & child process.

AUTHOR

Tokuhiro Matsuno

yappo

THANKS TO

kazuhooku

SEE ALSO

Test::TCP, Test::Fork, Test::MultipleFork

LICENSE

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