Man Page: test::sharedfork
Operating Environment: debian
Section: 3pm
Test::SharedFork(3pm) User Contributed Perl Documentation Test::SharedFork(3pm)NAMETest::SharedFork - fork testSYNOPSISuse 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 $!; }DESCRIPTIONTest::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.LIMITATIONSThis version of the Test::SharedFork does not support ithreads, because threads::shared conflicts with Storable.AUTHORTokuhiro Matsuno <tokuhirom slkjfd gmail.com> yappoTHANKS TOkazuhooku konbuizmSEE ALSOTest::TCP, Test::Fork, Test::MultipleForkLICENSEThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2011-11-29 Test::SharedFork(3pm)
| Related Man Pages |
|---|
| test::requires5.18(3) - mojave |
| test::requires(3) - centos |
| test::aggregate::builder(3pm) - debian |
| test::requires(3pm) - debian |
| test::valgrind::action::test(3pm) - debian |
| Similar Topics in the Unix Linux Community |
|---|
| How can I do this in VI editor? |
| Is UNIX an open source OS ? |
| Detecting unused variables... |
| One instance of comparing grep and awk |
| A (ksh) Library For and From UNIX.com |