Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

Test2::Require::RealFork - Skip a test file unless the system supports true forking

Authors

Chad Granum <exodist@cpan.org>

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 ...

See Also