• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/Test/H03-May-2022-394271

t/H03-May-2022-377293

xt/H03-May-2022-1615

ChangesH A D21-Dec-20152.8 KiB16087

LICENSEH A D21-Dec-201518 KiB379292

MANIFESTH A D21-Dec-2015543 3232

META.jsonH A D21-Dec-20152.7 KiB102101

META.ymlH A D21-Dec-20151.6 KiB6261

Makefile.PLH A D21-Dec-2015888 4131

README.mdH A D21-Dec-20151.1 KiB5433

README.mkdnH A D21-Dec-20151.2 KiB5433

cpanfileH A D21-Dec-2015297 1311

minil.tomlH A D21-Dec-201533 21

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