Warnings in tests
paul at pjcj.net
Thu Mar 15 11:51:05 GMT 2007
On Thu, Mar 15, 2007 at 12:31:53PM +0100, Sébastien Aperghis-Tramoni wrote:
> Rafael Garcia-Suarez wrote:
> > On 15/03/07, David Cantrell <david at cantrell.org.uk> wrote:
> > > The only way I can think of is to replace my perl executable with a
> > > script that does ...
> > >
> > > #!/bin/sh
> > > /path/to/real/perl -MThingy::To::Make::Warnings::Fatal "$@"
> > >
> > > but that's icky. Can anyone think of a better way?
> > use PERL5OPT ? (man perlrun)
> Problem is that it will be ignored when taint mode is enabled, which is
> often the case for tests (and is in my opinion more important than one
> or warnings).
I've not received the original mail yet, but assuming it follows on from
the perl-qa thread, perhaps setting HARNESS_PERL_SWITCHES is the answer.
Or, possibly better, adding to it.
Paul Johnson - paul at pjcj.net
More information about the london.pm