If it isn't the problem, what am I doing wrong?
The test output isn't the problem :-)
Test::Builder does some automatic checks when a process exits that, amongst other things, check that the number of tests run matches the number of tests in the plan.
After you fork the parent process doesn't know that the child process ran another test. This means when the parent process exits, it comes up one test short and outputs the error you see.
To get over this you can disable the exit checking by doing:
Test::More->builder->no_ending(1);in the parent process - see the Test::Builder docs for details.
In reply to Re: Test::More and fork
by adrianh
in thread Test::More and fork
by cees
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |