How do I tell Test::More that it shouldn't attempt to do any tests? In Regexp::Approx - Use fuzzy regular expressions the module forks during INIT and when I try to run tests I find that Test::More is attempting to control both the parent and the child. I think I need to tell it to not run tests in the child but I don't know how to do that. I tried skipping the tests but that just sends the ok / skipped message for the same test for each process. The following snippet is a reduction of the general case in the Regexp::Approx node.
use Test::More tests => 1; INIT { $child = fork } ok( 1 );
make test t/02init.....ok 2/1Don't know which tests failed: got 2 ok, expected 1
In reply to Getting Test::More to ignore forked children by diotalevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |