develooper Front page | perl.perl5.porters | Postings from November 2003

Re: Test::Harness on 5.6.2

Thread Previous | Thread Next
From:
Rafael Garcia-Suarez
Date:
November 14, 2003 07:27
Subject:
Re: Test::Harness on 5.6.2
Message ID:
20031114162406.105efc7b.rgarciasuarez@free.fr
Elizabeth Mattijsen wrote:
> >"no warnings" in the test file ? "no if $] == 5.06002, 'warnings'" ?
> 
> Nope.  That doesn't do it.
> 
> And I'm not so much worried about the test-suite: I can put an 
> advisory message about that when it runs.  It's about "normal" 
> operation that I'm worried about.

In fact warnings are globally turned on by the -w on the shebang
line of t/forks02.t, now parsed by Test::Harness.
So you can remove them either by BEGIN{$^W=0} or by removing that -w
(and using a lexically scoped warnings pragma instead :)
At least that's my understanding, at 1st sight.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About