Test2::Require::RealFork - Skip a test file unless the system supports true forking
Contents
Copyright
Copyright 2018 Chad Granum <exodist@cpan.org>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl
itself.
See http://dev.perl.org/licenses/
perl v5.40.1 2025-07-03 Test2::Require::RealFork(3perl)
Description
It is fairly common to write tests that need to fork. Not all systems support forking. This library does
the hard work of checking if forking is supported on the current system. If forking is not supported then
this will skip all tests and exit true.
Maintainers
Chad Granum <exodist@cpan.org>
Name
Test2::Require::RealFork - Skip a test file unless the system supports true forking
See Also
Test2::Require::Canfork
Similar to this module, but will allow fork emulation.
Test2::Require::CanThread
Skip the test file if the system does not support threads.
Source
The source code repository for Test2-Suite can be found at https://github.com/Test-More/Test2-Suite/.
Synopsis
use Test2::Require::RealFork;
... Code that forks ...
