Subject: | Problems with test case error checks with perl 5.10 |
Date: | Thu, 13 Mar 2008 11:14:09 +0000 |
To: | bug-Text-vCard [...] rt.cpan.org |
From: | Neil Williams <codehelp [...] debian.org> |
See Debian bug #467285
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=467285
The problem arises only in the test cases:
t/01-node.t
eval {
Text::vCard::Node::new(undef, { 'fields' => ['value'] });
};
like($@, qr/Use of uninitialized value in bless/,'Errors if no class
supplied');
perl 5.10 outputs a different error string:
Use of uninitialized value $class in bless
Similarly in t/02-vcard.t
eval {
Text::vCard::new(undef);
};
like($@, qr/Use of uninitialized value in bless/,'Errors if no class
supplied');
Similarly in t/03-addressbook.t
eval {
Text::vCard::Addressbook::new(undef);
};
like($@,qr/Use of uninitialized value in bless/,'new() - ok error when
no proto supplied');
Maybe the tests can be made less strict?
--
Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/
Message body not shown because it is not plain text.