Perl Diver 2.31
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Test::SharedFork

Name Test::SharedFork
Version 0.35
Located at /usr/share/perl5/vendor_perl
File /usr/share/perl5/vendor_perl/Test/SharedFork.pm
Is Core No
Search CPAN for this module Test::SharedFork
Documentation Test::SharedFork
Module Details Test::SharedFork


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 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 the threads::shared manpage conflicts with Storable.


AUTHOR

Tokuhiro Matsuno <tokuhirom slkjfd gmail.com>

yappo


THANKS TO

kazuhooku

konbuizm


SEE ALSO

the Test::TCP manpage, the Test::Fork manpage, the Test::MultiFork manpage


LICENSE

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

Perl Diver brought to you by ScriptSolutions.com © 1997- 2024