1Test::Stream::Plugin::CUaspearbiClointtireisb(u3t)ed PerTlesDto:c:uSmternetaamt:i:oPnlugin::Capabilities(3)
2
3
4
6 Test::Stream::Plugin::Capabilities - Import constants to check the
7 capabilities of the current system.
8
10 This distribution is deprecated in favor of Test2, Test2::Suite, and
11 Test2::Workflow.
12
13 See Test::Stream::Manual::ToTest2 for a conversion guide.
14
16 Sometimes you want to know what capabilities the current system has.
17 Checking on these can sometimes be complicated or error prone. This
18 tool provides constants for some common capability checks.
19
21 use Test::Stream qw/... Capabilities/;
22
23 if (CAN_THREAD) {
24 ... Code that uses threads ...
25 }
26
27 if (CAN_FORK) {
28 ... Code that forks ...
29 }
30
31 if (CAN_REALLY_FORK) {
32 ... Code that requires true forking, but breaks with pseudo-fork ...
33 }
34
36 See Test::Stream::Capabilities for a list of checks, this plugin is a
37 simple wrapper around it.
38
40 The source code repository for Test::Stream can be found at
41 http://github.com/Test-More/Test-Stream/.
42
44 Chad Granum <exodist@cpan.org>
45
47 Chad Granum <exodist@cpan.org>
48
50 Copyright 2015 Chad Granum <exodist7@gmail.com>.
51
52 This program is free software; you can redistribute it and/or modify it
53 under the same terms as Perl itself.
54
55 See http://dev.perl.org/licenses/
56
57
58
59perl v5.32.0 2020-07-T2e8st::Stream::Plugin::Capabilities(3)