line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Test::Stream::Plugin::CanFork; |
2
|
2
|
|
|
2
|
|
6
|
use strict; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
44
|
|
3
|
2
|
|
|
2
|
|
6
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
38
|
|
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
8
|
use Test::Stream::Capabilities qw/CAN_FORK CAN_REALLY_FORK/; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
10
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
6
|
use Test::Stream::Plugin qw/import/; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
8
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub load_ts_plugin { |
10
|
2
|
|
|
2
|
0
|
4
|
my $class = shift; |
11
|
2
|
|
|
|
|
4
|
my ($caller, %params) = @_; |
12
|
|
|
|
|
|
|
|
13
|
2
|
50
|
|
|
|
4
|
if ($params{real}) { |
14
|
0
|
|
|
|
|
0
|
return if CAN_REALLY_FORK; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
else { |
17
|
2
|
|
|
|
|
8
|
return if CAN_FORK; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
0
|
|
|
|
|
|
require Test::Stream::Context; |
21
|
0
|
|
|
|
|
|
my $ctx = Test::Stream::Context::context(); |
22
|
0
|
|
|
|
|
|
$ctx->plan(0, "SKIP", "This test requires a perl capable of forking."); |
23
|
0
|
|
|
|
|
|
$ctx->release; |
24
|
0
|
|
|
|
|
|
exit 0; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
1; |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
__END__ |