Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tokuhirom/test-sharedfork
Test::SharedFork
https://github.com/tokuhirom/test-sharedfork
Last synced: 18 days ago
JSON representation
Test::SharedFork
- Host: GitHub
- URL: https://github.com/tokuhirom/test-sharedfork
- Owner: tokuhirom
- License: other
- Created: 2009-03-25T09:34:42.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2018-09-14T01:17:07.000Z (about 6 years ago)
- Last Synced: 2024-10-11T20:57:47.582Z (about 1 month ago)
- Language: Perl
- Homepage:
- Size: 125 KB
- Stars: 12
- Watchers: 5
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# 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)](http://man.he.net/man2/fork) 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](https://metacpan.org/pod/threads::shared) conflicts with [Storable](https://metacpan.org/pod/Storable).
# AUTHOR
Tokuhiro Matsuno <tokuhirom slkjfd gmail.com>
yappo
# THANKS TO
kazuhooku
konbuizm
# SEE ALSO
[Test::TCP](https://metacpan.org/pod/Test::TCP), [Test::Fork](https://metacpan.org/pod/Test::Fork), [Test::MultiFork](https://metacpan.org/pod/Test::MultiFork)
# LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.