develooper Front page | perl.perl5.porters | Postings from September 2005

Re: Warnings in tests @25605 due to cmp_ok behavior change.

Thread Previous
From:
Rafael Garcia-Suarez
Date:
September 27, 2005 00:08
Subject:
Re: Warnings in tests @25605 due to cmp_ok behavior change.
Message ID:
20050927090757.285abd30@grubert.mandrakesoft.com
Michael G Schwern wrote:
> Got a bunch of uninit warnings, likely from the new Test::More behavior
> of cmp_ok() to not supress warnings.  This is a Good Thing.
> 
> 
> lib/Pod/t/InputObjects....................Use of uninitialized value $got in string eq at ../lib/Pod/t/InputObjects.t line 40.
> ok
> 
> lib/ExtUtils/t/Manifest...................Use of uninitialized value $got in string eq at ../lib/ExtUtils/t/Manifest.t line 103.
> ok
> 
> lib/ExtUtils/t/Command....................Use of uninitialized value $expect in numeric eq (==) at ../lib/ExtUtils/t/Command.t line 61, <> line 576.
> ok
> 
> lib/AutoSplit.............................Use of uninitialized value $expect in string eq at ../lib/AutoSplit.t line 123.
> ok
> 
> The MakeMaker warnings I'll fix elsewhere.  The others appear to simply be
> a case where it didn't really matter if the inputs were '' or undef and they
> used cmp_ok 'eq' simply because it happened to suppress warnings.  Patch
> attached.

Thanks, applied as change #25610.

Thread Previous


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