in reply to Re^2: Testing failures: How to override print to make it fail?
in thread Testing failures: How to override print to make it fail?
If you're printing to a filehandle, then use a IO::File-derived class that will encapsulate that die for you, and test that. I'm not quite sure how STDOUT or STDERR runs out of space, though.
- In general, if you think something isn't in Perl, try it out, because it usually is. :-)
- "What is the sound of Perl? Is it not the sound of a wall that people have stopped banging their heads against?"
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Testing failures: How to override print to make it fail?
by adrianh (Chancellor) on May 05, 2005 at 14:00 UTC |
In Section
Seekers of Perl Wisdom