jffry has asked for the wisdom of the Perl Monks concerning the following question:

The OS is AIX 5.2 latest maintenance level.

I've already posted to the CPAN forum, but it doesn't seem to get much traffic.

I'm not seeing *exactly* the same problem in the CPAN bug list.

Super Search yeilded squat. Terms = "Test::Simple" and "lock".

Admitedly, this is urgent, so I didn't do any up-front investigating on my own. I wanted to throw this out there first, before I dug in looking for an answer myself. Sorry. It's time critical. You've been forewarned of my wimpiness.

Here is the 'make test' errors on Test::Simple 0.62 with Perl 5.8.0:

t/diag....................lock can only be used on shared values at /t +mp/Lugh/perl_modules/Test-Simple-0.62/blib/lib/Tes t/Builder.pm line 394. # Looks like your test died before it could output anything. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-5 Failed 5/5 tests, 0.00% okay *snip* t/overload_threads........lock can only be used on shared values at /t +mp/Lugh/perl_modules/Test-Simple-0.62/blib/lib/Tes t/Builder.pm line 394. # Looks like your test died before it could output anything. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-5 Failed 5/5 tests, 0.00% okay *snip* t/sort_bug................lock can only be used on shared values at /t +mp/Lugh/perl_modules/Test-Simple-0.62/blib/lib/Tes t/Builder.pm line 394. # Looks like your test died before it could output anything. A thread exited while 2 other threads were still running. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-2 Failed 2/2 tests, 0.00% okay *snip* t/threads.................thread failed to start: lock can only be use +d on shared values at /tmp/Lugh/perl_modules/Test- Simple-0.62/blib/lib/Test/Builder.pm line 394. thread failed to start: lock can only be used on shared values at /tmp +/Lugh/perl_modules/Test-Simple-0.62/blib/lib/Test/ Builder.pm line 394. thread failed to start: lock can only be used on shared values at /tmp +/Lugh/perl_modules/Test-Simple-0.62/blib/lib/Test/ Builder.pm line 394. thread failed to start: lock can only be used on shared values at /tmp +/Lugh/perl_modules/Test-Simple-0.62/blib/lib/Test/ Builder.pm line 394. thread failed to start: lock can only be used on shared values at /tmp +/Lugh/perl_modules/Test-Simple-0.62/blib/lib/Test/ Builder.pm line 394. lock can only be used on shared values at /tmp/Lugh/perl_modules/Test- +Simple-0.62/blib/lib/Test/Builder.pm line 1352. # Looks like your test died before it could output anything. dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 1-6 Failed 6/6 tests, 0.00% okay *snip* Failed 4/63 test scripts, 93.65% okay. 18/487 subtests failed, 96.30% +okay. Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t/diag.t 255 65280 5 5 100.00% 1-5 t/overload_threads.t 255 65280 5 5 100.00% 1-5 t/sort_bug.t 255 65280 2 2 100.00% 1-2 t/threads.t 255 65280 6 6 100.00% 1-6 2 tests and 8 subtests skipped. make: 1254-004 The error code from the last command is 25. Stop.

Replies are listed 'Best First'.
Re: Test::Simple 0.62 'make test' failing on 5.8.0
by syphilis (Archbishop) on Apr 11, 2006 at 00:49 UTC
    All of those failing test scripts involve threads - and I suspect that all of the passing test scripts do not involve threads - and you may well find that what you're seeing is the result of threads bugs. If threads are not going to be used, then I would just ignore the errors. Otherwise, first thing I would try is to update the threads installation (from CPAN source).

    Was your perl built with '-Duseithreads' ? (In other words, does 'perl -V:useithreads' report 'define' ?) I've assumed the answer is "yes".

    Cheers,
    Rob
      [root@birch02] / # perl -V:useithreads useithreads='define';

      Yep.

      But, I've got 2 questions, kindly Rob.

      1. Where are the thread bugs? In the Perl version or the module version or did you just mean in general?
      2. What CPAN module to update the threads? I'll search, but still, I don't want to install a lot of unneeded modules before finding the one you were referring to. If you meant the Perl version in general, that can't happen.

      Thanks!

        I meant just in general. There's a comment to this effect in diag.t.
        And I was thinking of updating the threads module from CPAN -http://search.cpan.org/~jdhedden/threads-1.22/ - assuming you can't update perl itself. I don't know if it will solve anything, but it's the first thing I'd try given the aforementioned comments in diag.t (which you'll find near the beginning of that file).

        Cheers,
        Rob