Test::SharedFork

Test::SharedFork

Latest version: 0.35 registry icon
Maintenance score
0
Safety score
0
Popularity score
10
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
0.35 0 0 0 0 0
0.34 0 0 0 0 0
0.33 0 0 0 0 0
0.32 0 0 0 0 0
0.31 0 0 0 0 0
0.30 0 0 0 0 0
0.29 0 0 0 0 0

Stability
Latest release:

0.35 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

Artistic-1.0   -   Artistic License 1.0

Not a wildcard

Not proprietary

OSI Compliant


GPL-1.0-or-later   -   GNU General Public License v1.0 or later

Not a wildcard

Not proprietary

OSI Compliant



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

AUTHOR

Tokuhiro Matsuno <tokuhirom slkjfd gmail.com>

yappo

THANKS TO

kazuhooku

konbuizm

SEE ALSO

Test::TCP, Test::Fork, Test::MultiFork

LICENSE

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