develooper Front page | perl.perl5.porters | Postings from March 2007

Re: [ANNOUNCE] Test::More/Simple/Builder 0.68

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
March 14, 2007 14:53
Subject:
Re: [ANNOUNCE] Test::More/Simple/Builder 0.68
Message ID:
20070314215305.GB5748@plum.flirble.org
Erk. Fails big time on 5.005_03

(Sorry, only just had reason to want to build 5.005_03)

On Tue, Mar 13, 2007 at 05:34:48PM -0700, Michael G Schwern wrote:
> 0.68  Tue Mar 13 17:27:26 PDT 2007
>     Bug fixes
>     * If your code has a $SIG{__DIE__} handler in some cases functions like
>       use_ok(), require_ok(), can_ok() and isa_ok() could trigger that
>       handler. [rt.cpan.org 23509]
>     - Minor improvement to TB's filehandle detection in the case of overridden
>       isa(). [rt.cpan.org 20890]
>     - Will now install as a core module in 5.6.2 which ships with Test::More.
>       [rt.cpan.org 25163]
> 
>     New Features
>     - Test::Builder->is_fh() provides a way to determine if a thing
>       can be used as a filehandle.
> 
>     Documentation improvements
>     - Improved the docs for $Test::Builder::Level showing the encouraged
>       use (increment, don't set)
>     - Documented the return value of Test::Builder's test methods
>     - Split out TB's method documentation to differenciate between test
>       methods (ok, is_eq...), methods useful in testing (skip, BAILOUT...)
>       and methods useful for building your own tests (maybe_regex...).
> 
>     Test fixes
>     - We required too old a version of Test::Pod::Coverage.  Need 1.08 and not
>       1.00. [rt.cpan.org 25351]

Something somewhere in those changes makes it go very wrong, as 0.67 works
a treat. I've not started digging yet, but the first test to clearly go
wrong is:

$ ~/Reference/5.005_03/bin/perl5.00503 -w -Mblib t/Builder.t 
Using /export/home/nwc10/Perl/Test-Simple-0.68/blib
ok 6 - current_test() set

And this might give the game away:

$ ~/Reference/5.005_03/bin/perl5.00503 -w -Mblib t/buffer.t  
Using /export/home/nwc10/Perl/Test-Simple-0.68/blib
ok 2 - You're ok
ok 4 - You're ok
ok 6 - You're ok
ok 8 - You're ok
ok 10 - You're ok
ok 12 - You're ok
ok 14 - You're ok
ok 16 - You're ok
ok 18 - You're ok
ok 20 - You're ok

given that the output is supposed to be:

$ perl -Mblib t/buffer.t 
1..20
ok 1 - I'm ok
ok 2 - You're ok
ok 3 - I'm ok
ok 4 - You're ok
ok 5 - I'm ok
ok 6 - You're ok
ok 7 - I'm ok
ok 8 - You're ok
ok 9 - I'm ok
ok 10 - You're ok
ok 11 - I'm ok
ok 12 - You're ok
ok 13 - I'm ok
ok 14 - You're ok
ok 15 - I'm ok
ok 16 - You're ok
ok 17 - I'm ok
ok 18 - You're ok
ok 19 - I'm ok
ok 20 - You're ok


Does anything spring to mind as to the cause?

Nicholas Clark

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