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 06:42
Subject:
Re: Test::Harness on 5.6.2
Message ID:
20031114154017.4409e028.rgarciasuarez@free.fr
Elizabeth Mattijsen wrote:
>
> It looks like Test::Harness is upgraded on 5.6.2, but that it 
> contains the 5.8.1 version rather than the 5.8.2 version:
> 
> $ perl5.6.0 -MTest::Harness -e 'print "$Test::Harness::VERSION\n"'
> 1.1604
> (don't have 5.6.1 handy)
> $ perl5.6.2 -MTest::Harness -e 'print "$Test::Harness::VERSION\n"'
> 2.30
> $ perl5.8.1 -MTest::Harness -e 'print "$Test::Harness::VERSION\n"'
> 2.30
> $ perl5.8.2 -MTest::Harness -e 'print "$Test::Harness::VERSION\n"'
> 2.32

blead comes with Test::Harness 2.30. As I don't do maint-5.8
(ECANTDOEVERYTHING) I didn't caught up with it.

CPAN has Test::Harness 2.34.

Nicholas, why does 5.8.2 contain a newer module than bleadperl ?
Should I update Test::Harness in blead and 5.6 ? and to which version ?

> The updated Test::Harness is now causing warnings to be displayed in 
> the test-suite of forks.pm.  I've taken out one warning of each type 
> with the associated source line:
> 
> SCALAR package attribute may clash with future reserved word: shared 
> at t/forks01.t line 192
> my $bar : shared;
> 
> Unquoted string "threads" may clash with future reserved word at 
> t/forks02.t line 34.
> push( @thread,threads->new( sub {...
> 
> 
> Earlier versions of Test:::Harness didn't enable warnings, so these 
> were probably masked before.
> 
> Is there a way for me to stop these warnings to occur when warnings 
> are activated?

"no warnings" in the test file ? "no if $] == 5.06002, 'warnings'" ?

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