Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^6: BAIL_OUT with older Test::More

by ELISHEVA (Prior)
on Feb 15, 2011 at 19:50 UTC ( [id://888370]=note: print w/replies, xml ) Need Help??


in reply to Re^5: BAIL_OUT with older Test::More
in thread BAIL_OUT with older Test::More

Thanks for letting us know how it seems to be working.

Why not wrap it in a sub and document the sub? That way everything will be in one place and you'll have less to type each time you want to bail.

BTW, If you did want to abort, you could probably do print ....; die - the print to force the bail. The die to abort that particular .t file on the spot. Maybe you could even pass a flag to your sub indicating whether you want to die now or not?

Replies are listed 'Best First'.
Re^7: BAIL_OUT with older Test::More
by Anonymous Monk on Feb 15, 2011 at 20:10 UTC
    Why not wrap it in a sub and document the sub? That way everything will be in one place and you'll have less to type each time you want to bail.

    Oh, duh. You know, I'm pretty confident I'd have moved it into a sub from the second time I'd have written that particular line, but it still didn't occur to me immediately. How you guys manage to think that much in advance, I guess I'll never know until I have written much more Perl.

    BTW, If you did want to abort, you could probably do print ....; die - the print to force the bail. The die to abort that particular .t file on the spot. Maybe you could even pass a flag to your sub indicating whether you want to die now or not?

    We'll see... I can't spend too much time on this either since this is not development time that can be billed to the client. So sad that it's often the case with the most interesting stuff.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2024-04-19 05:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found