|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Re: Test::More and forkby adrianh (Chancellor) |
| on Jun 23, 2005 at 13:32 UTC ( [id://469465]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
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 Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||