You're forking, and running a test in both parent and child, hence the extra test. If you really want two tests you'll need to:
If you don't want to run tests in parent and child then... erm... don't execute the test statements. Stick if ($child_pid) { ... } round the tests.
Or am I completely missing the point? :-)
In reply to Re: Getting Test::More to ignore forked children
by adrianh
in thread Getting Test::More to ignore forked children
by diotalevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |