Re: suppressing warnings in test programs

2009-01-26 Thread Dominique Dumont
cr...@animalhead.com writes: > I've looked through the Test::More manpage, but cannot find what else > I can do to suppress such error messages during testing. > > Can you please help? You can use Test::Warn. Or you could trap the warning message. Here's what I use is some of my tests to mask s

suppressing warnings in test programs

2009-01-25 Thread craig
In an XSUB package, certain C routines that return "OK/not OK" are provided with warning messages on the way out, like this: int mm_array_store(scalar, sv) mm_scalar *scalar SV *sv POSTCALL: if (!RETVAL && PL_dowarn) warn("mma_scalar_set: %s", mm_error ()); Test programs fo