in reply to Test::More and fork
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Test::More and fork
by cees (Curate) on Jun 23, 2005 at 19:05 UTC | |
by adrianh (Chancellor) on Jun 23, 2005 at 23:10 UTC |