Skip Menu |

This queue is for tickets about the Mail-Box CPAN distribution.

Report information
The Basics
Id: 13787
Status: resolved
Priority: 0/
Queue: Mail-Box

People
Owner: Nobody in particular
Requestors: gerard.tromp
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.061
Fixed in: (no value)



Subject: test.pl: new version of Test::Builder changes semantics
Mail-Box-2.061 test.pl uses Test::Builder in the following way: # we use Test::More without a plan here, but we don't want # Test::Builder to mess with the exit code Test::Builder->no_ending(1); With Test::Builder 0.30 (I am not sure of prior versions) the semantics have changed to OO semantics. The code above gives the error: Can't use string ("Test::Builder") as a HASH ref while "strict refs" in use at /usr/local/lib/perl5/5.8.5/Test/Builder.pm line 981 The following change corrects the problem. # we use Test::More without a plan here, but we don't want # Test::Builder to mess with the exit code my $Test = Test::Builder->new(); $Test->no_ending(1);
[guest - Tue Jul 19 20:15:31 2005]: Show quoted text
> Mail-Box-2.061 > > test.pl uses Test::Builder in the following way: > # we use Test::More without a plan here, but we don't want > # Test::Builder to mess with the exit code > Test::Builder->no_ending(1);
Show quoted text
> The following change corrects the problem. > # we use Test::More without a plan here, but we don't want > # Test::Builder to mess with the exit code > my $Test = Test::Builder->new(); > $Test->no_ending(1);
It's a pitty, but it is not that simple. I need to access the Test::More object which is created within each object, so within each of the test scripts... which is hidden by a my(). I have contacted the author of Test::Builder to report one bug and one mis-feature that was created with this change. I hope he releases an update soon.
Fixed in 2.062