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

Re: Test::Harness on 5.6.2

Thread Previous | Thread Next
Rafael Garcia-Suarez
November 14, 2003 07:27
Re: Test::Harness on 5.6.2
Message ID:
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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About