/
View dependency graph
Depends on
- libtest-requires-perl (libtest-requires-perl)
- perl (perl)
- debhelper-compat
Used by
- feersum 1.505-1
- libanyevent-forkmanager-perl 0.07-3
- libdata-objectdriver-perl 0.27-1
- libfile-flock-perl 2014.01-4
- libfilesys-notify-simple-perl 0.14-3
- libfurl-perl 3.15-1
- libipc-shareable-perl 1.13-1
- libmath-random-secure-perl 0.080001-1.1
- libmodule-build-pluggable-perl 0.10-4
- libparallel-prefork-perl 0.18-1
- libposix-atfork-perl 0.04-2
- libredis-fast-perl 0.37+dfsg-1
- libredis-perl 2:2.000-1
- libsearch-elasticsearch-perl 8.12-1
- libtest-sharedobject-perl 0.01-3
- libtest-simple-perl 1.302222-1
- libtest-tcp-perl 2.22-2
- libtest-unixsock-perl 0.4-2
- libipc-shareable-perl 1.19-1
README (full)
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.
| dir | debian/ |
| dir | lib/ |
| dir | t/ |
| dir | xt/ |
| file | Changes |
| file | LICENSE |
| file | MANIFEST |
| file | META.json |
| file | META.yml |
| file | Makefile.PL |
| file | README.md |
| file | README.mkdn |
| file | cpanfile |
| file | minil.toml |