Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Test::More and fork

by bluto (Curate)
on Jun 22, 2005 at 18:12 UTC ( [id://469115]=note: print w/replies, xml ) Need Help??


in reply to Test::More and fork

This may be too simple for your needs, but one way to do this may be to have the parent do all of the 'ok' printing (e.g. have it wait for the child to die and then examine the exit code). If the child has fairly simple output you need to check, you can just send it to a temporary file and have the parent parse it once the child has exitted. I've found that if I design my tests right I don't need anything more complex than this, but YMMV.

Update: I meant to say I've gotten this method to work fine with Test::More.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://469115]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-04-26 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found