The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
Reading database from ...


------------------------------------------ ------ ------ ------ ------ ------
File                                         stmt   bran   cond    sub  total
------------------------------------------ ------ ------ ------ ------ ------
tests/fork                                  100.0   75.0    n/a    n/a   90.9
Total                                       100.0   75.0    n/a    n/a   90.9
------------------------------------------ ------ ------ ------ ------ ------


Run: ...
Perl version: ...
OS: ...
Start: ...
Finish: ...

Run: ...
Perl version: ...
OS: ...
Start: ...
Finish: ...

tests/fork

line  err   stmt   bran   cond    sub   code
1                                       #!/usr/bin/perl
2                                       
3                                       # Copyright 2004-2013, Paul Johnson (paul@pjcj.net)
4                                       
5                                       # This software is free.  It is licensed under the same terms as Perl itself.
6                                       
7                                       # The latest version of this software should be available from my homepage:
8                                       # http://www.pjcj.net
9                                       
10                                      # __COVER__ skip_test $^O eq "MSWin32" || $] == 5.008007
11                                      # __COVER__ skip_reason Fork unreliable
12                                      
13             2                        $x = 1;
14                                      
15    ***      2     50                 die unless defined ($pid = fork);
16                                      
17             2    100                 if ($pid)
18                                      {
19             1                            $x = 2;
20             1                            waitpid $pid, 0;
21                                      }
22                                      else
23                                      {
24             1                            $x = 3;
25                                      }
26                                      
27             2                        print "$x: $$\n";


Branches
--------

line  err      %   true  false   branch
----- --- ------ ------ ------   ------
15    ***     50      0      2   unless defined($pid = fork)
17           100      1      1   if ($pid) { }