Slash Boxes
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 ]

Ovid (2709)

  (email not shown publicly)
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Monday February 09, 2004
01:00 PM

First Test Failure on the CPAN

[ #17307 ]

I have six distributions on the CPAN, yet I've never had a single test fail. I could pat myself on the back, but I do wonder if this is because I didn't write enough tests, skipped corner cases, or in the case of AI::NeuralNet::Simple, I didn't know how to test it (and hence have only 18 tests). A couple of days ago, I finally received a report of a test failure. It was on AI::NeuralNet::Simple. I wasn't surprised because the bulk of the code is written in C, so I naturally assumed that I was going to have some obvious error that a C neophyte like myself had overlooked.

Nope. The module depends Inline::C and a couple of test modules. Somewhere in the modules I use is a dependency on Sub::Uplevel. I haven't tracked down who uses it yet, but I'm kind of bummed out that my perfect (cough) track record was ruined by someone else's module. I don't want to put Sub::Uplevel in my Makefile.PL, so I'll have to get off my rear and find out who left it out of their dependencies.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Ovid, that test was reported from my system. Sorry =D

    A similar failure was reported from testing Test::Class (source []).

    Adrian, the author of Test::Class, suggested that my installation of Test::Exception was hosed, thus making Sub::Uplevel barf. After re-installing Test::Exception his distribution passed (source []).

    I will try yours again tonight and see if it passes.

    • What curious timing. I was just about to post my research into this. I just decided to look into this and saw that Sub::Uplevel was coming from Test::Exception, but it's listed in the Makefile.PL. Test::Exception might be hosed, but it may just be a simple case of reinstalling Sub::Uplevel. Clearly you do have Test::Exception installed, otherwise the Sub::Uplevel call wouldn't have been made (though a clean install wouldn't hurt).

      And no worries. It was bound to happen sooner or later :)

      • Writing Makefile for AI::NeuralNet::Simple
        PERL_DL_NONLAZY=1 /usr/bin/perl5.8.0 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
        All tests successful.
        Files=1, Tests=18, 10 wallclock secs ( 9.27 cusr +  0.51 csys =  9.78 CPU)