Test::CanFork - Only run tests when forking is supported, optionally conditioned on ENV vars.
Use this first thing in a test that should be skipped when forking is not supported. You can also specify that the test should be skipped when specific environment variables are not set.
Skip the test if forking is unsupported:
use Test::CanFork; use Test::More; ...
Skip the test if forking is unsupported, or any of the specified env vars are not set:
use Test::CanFork qw/AUTHOR_TESTING RUN_PROBLEMATIC_TESTS .../; use Test::More; ...
The source code repository for Test::More can be found at http://github.com/Test-More/test-more/.
Copyright 2014 Chad Granum <email@example.com>.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.