Le vendredi 14 juillet 2006 à 10:57, Gabor Szabo écrivait:
> Hi all,
> 
> what is the current best practices for testing code that forks?
> I saw there was a recent discussion about patching Test::More
> to support forking.
> Is that going to happen or are there better ways to do it?

I have tests for code that forks (with tests run in the various processes)
in HTTP::Proxy. I use the following code before forking:

    my $test = Test::Builder->new();
    $test->use_numbers(0);
    $test->no_ending(1);

-- 
 Philippe "BooK" Bruhat

 Eliminate a problem before it eliminates you!
                                    (Moral from Groo The Wanderer #65 (Epic))

Reply via email to