# from Paul LeoNerd Evans
# on Tuesday 18 July 2006 11:59 am:

>The latter avoids any issues of deadlock, and obeys proper ordering
>constraint, but is more complicated, and could break in all other
> sorts of nasty ways.

You probably want to avoid doing it the "incorrect" (even if only 
slightly-so) way.  The fact that a kernel or other environment issue 
could break it is enough reason.

The more complicated way could be a bit too complicated.  You want your 
tests to be as simple as possible (even to the point of being somewhat 
stupid.)

Have you considered doing something with tempfiles or external programs?  
Maybe even mocking-up the network instead of using the real socketpair? 
IPC::Run, IPC::Open3 or something?

--Eric
-- 
Chicken farmer's observation:  Clunk is the past tense of cluck.
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to