Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
lib/Test/ | H | 03-May-2022 | - | 394 | 271 | |
t/ | H | 03-May-2022 | - | 377 | 293 | |
xt/ | H | 03-May-2022 | - | 16 | 15 | |
Changes | H A D | 21-Dec-2015 | 2.8 KiB | 160 | 87 | |
LICENSE | H A D | 21-Dec-2015 | 18 KiB | 379 | 292 | |
MANIFEST | H A D | 21-Dec-2015 | 543 | 32 | 32 | |
META.json | H A D | 21-Dec-2015 | 2.7 KiB | 102 | 101 | |
META.yml | H A D | 21-Dec-2015 | 1.6 KiB | 62 | 61 | |
Makefile.PL | H A D | 21-Dec-2015 | 888 | 41 | 31 | |
README.md | H A D | 21-Dec-2015 | 1.1 KiB | 54 | 33 | |
README.mkdn | H A D | 21-Dec-2015 | 1.2 KiB | 54 | 33 | |
cpanfile | H A D | 21-Dec-2015 | 297 | 13 | 11 | |
minil.toml | H A D | 21-Dec-2015 | 33 | 2 | 1 |
README.md
1# NAME 2 3Test::SharedFork - fork test 4 5# SYNOPSIS 6 7 use Test::More tests => 200; 8 use Test::SharedFork; 9 10 my $pid = fork(); 11 if ($pid == 0) { 12 # child 13 ok 1, "child $_" for 1..100; 14 } elsif ($pid) { 15 # parent 16 ok 1, "parent $_" for 1..100; 17 waitpid($pid, 0); 18 } else { 19 die $!; 20 } 21 22# DESCRIPTION 23 24Test::SharedFork is utility module for Test::Builder. 25 26This module makes [fork(2)](http://man.he.net/man2/fork) safety in your test case. 27 28This module merges test count with parent process & child process. 29 30# LIMITATIONS 31 32This 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). 33 34# AUTHOR 35 36Tokuhiro Matsuno <tokuhirom slkjfd gmail.com> 37 38yappo 39 40# THANKS TO 41 42kazuhooku 43 44konbuizm 45 46# SEE ALSO 47 48[Test::TCP](https://metacpan.org/pod/Test::TCP), [Test::Fork](https://metacpan.org/pod/Test::Fork), [Test::MultiFork](https://metacpan.org/pod/Test::MultiFork) 49 50# LICENSE 51 52This library is free software; you can redistribute it and/or modify 53it under the same terms as Perl itself. 54
README.mkdn
1# NAME 2 3Test::SharedFork - fork test 4 5# SYNOPSIS 6 7 use Test::More tests => 200; 8 use Test::SharedFork; 9 10 my $pid = fork(); 11 if ($pid == 0) { 12 # child 13 ok 1, "child $_" for 1..100; 14 } elsif ($pid) { 15 # parent 16 ok 1, "parent $_" for 1..100; 17 waitpid($pid, 0); 18 } else { 19 die $!; 20 } 21 22# DESCRIPTION 23 24Test::SharedFork is utility module for Test::Builder. 25 26This module makes [fork(2)](http://man.he.net/man2/fork) safety in your test case. 27 28This module merges test count with parent process & child process. 29 30# LIMITATIONS 31 32This version of the Test::SharedFork does not support ithreads, because [threads::shared](http://search.cpan.org/perldoc?threads::shared) conflicts with [Storable](http://search.cpan.org/perldoc?Storable). 33 34# AUTHOR 35 36Tokuhiro Matsuno <tokuhirom slkjfd gmail.com> 37 38yappo 39 40# THANKS TO 41 42kazuhooku 43 44konbuizm 45 46# SEE ALSO 47 48[Test::TCP](http://search.cpan.org/perldoc?Test::TCP), [Test::Fork](http://search.cpan.org/perldoc?Test::Fork), [Test::MultipleFork](http://search.cpan.org/perldoc?Test::MultipleFork) 49 50# LICENSE 51 52This library is free software; you can redistribute it and/or modify 53it under the same terms as Perl itself. 54