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

Warnings in tests @25605 due to cmp_ok behavior change.

Thread Next
From:
Michael G Schwern
Date:
September 26, 2005 14:21
Subject:
Warnings in tests @25605 due to cmp_ok behavior change.
Message ID:
20050926212109.GA11036@windhund.schwern.org
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.


-- 
Michael G Schwern     schwern@pobox.com     http://www.pobox.com/~schwern
Stabbing you in the face so you don't have to.

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