Re: Munging output when running warning tests

2008-04-28 Thread Michael G Schwern
nadim khemir wrote: I have had a problems with output when running tests, this happends, IE, when perl output a warning. warning_like { something() ; } qr'Use of uninitialized value in substitution iterator' ; I get the warning on the terminal which is boring when one

Re: Munging output when running warning tests

2008-04-28 Thread nadim khemir
On Tuesday 29 April 2008 03.24.48 Michael G Schwern wrote: > > BTW: Test::Warn suck a bit because it doesn't check the warning you emit > > but the _first_ line of the warning you emit (hmm, time for a patch > > maybe). > > All the warnings_* functions take an array ref of warnings. You can't test