Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

hex (3272)

hex
  (email not shown publicly)
http://downlode.org/

Perl, RDF and wiki hacker, London, UK. This is my former Perl blog; I now write at Earle's Notebook [downlode.org].

Journal of hex (3272)

Tuesday April 08, 2008
04:36 AM

Weird spread of test failures

[ #36100 ]
I recently released a new module, Encode::Base32::Crockford. While the tests for the module itself are fine, the two associated POD tests (validity and coverage) are resulting in a very strange distribution of failures (testers, matrix).

It looks like something may be objecting to my phrasing eval { something(); } skip $reason, $count if $@;. However it doesn't seem to be a single version of Perl or platform.

I think I'm going to rewrite the tests to use SKIP blocks, but I'm curious to know what's going on here - it certainly looks like a bug in something. Has anyone else encountered this?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • You either need the block or to pass skip_all => $reason to plan(). Test::More relies on a particularity of Perl 5 control flow to stop executing the block in which you call skip(). If you're not in a block, Perl gets all wobbly.

    • I managed to press the wrong reply button - there's a reply to your comment below.
  • Thanks for the tip. I honestly can't recall why I wrote the tests without the skip blocks in the first place - I suspect it to have been a brain fart. Conveniently hidden by the tests passing on my 5.8.8. Evidently some versions or distributions of Perl get wobblier than others.