diotalevi has asked for the wisdom of the Perl Monks concerning the following question:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Getting Test::More to ignore forked children
by adrianh (Chancellor) on Nov 13, 2003 at 23:20 UTC | |
by diotalevi (Canon) on Nov 13, 2003 at 23:29 UTC | |
by adrianh (Chancellor) on Nov 13, 2003 at 23:44 UTC | |
by diotalevi (Canon) on Nov 13, 2003 at 23:52 UTC |