Test::SharedFork3pm
Fork test
Usage
use Test::More tests => 200;use Test::SharedFork;my $pid = fork();if ($pid == 0) {# childok 1, "child $_" for 1..100;} elsif ($pid) {# parentok 1, "parent $_" for 1..100;waitpid($pid, 0);} else {die $!;}
Overview
Test::SharedFork is utility module for Test::Builder.
This module makes fork(2) safety in your test case.
This module merges test count with parent process & child process.
Limitations
This version of the Test::SharedFork does not support ithreads, because threads::shared conflicts with Storable.
Thanks to
kazuhooku
konbuizm
Releases
8 releases since Debian 6.0 (Squeeze); the text changed 4 times.