![]() |
|
There's more than one way to do things | |
PerlMonks |
Re: Results printing multiple times when testcase with fork using Test::more moduleby shmem (Chancellor) |
on May 20, 2009 at 14:12 UTC ( [id://765232]=note: print w/replies, xml ) | Need Help?? |
Since you fork, you spawn another process from the current process and thus have two results. Why do you fork if you want just one run of the test? If you want the child to terminate before the evaluation of the last ok() test, your sub should look like:
In Section
Seekers of Perl Wisdom
|
|