Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

I tried to build this on AS810 (5.8.4) and I am getting test failures in 03-threads.t.

C:\Perl\packages\Object-InsideOut-0.02.00>nmake test Microsoft (R) Program Maintenance Utility Version 8.00.40607.16 Copyright (C) Microsoft Corporation. All rights reserved. C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harn +ess(0, 'bl +ib\lib', 'blib\arch')" t\01-basic.t t\02-auto.t t\03-threads.t t\04-s +hared.t t\01-basic......Can't locate Exception/Class.pm in @INC (@INC contains +: C:\Perl\ +packages\Object-InsideOut-0.02.00\blib\lib C:\Perl\packages\Object-In +sideOut-0. +0 BEGIN failed--compilation aborted at C:\Perl\packages\Object-InsideOut +-0.02.00\b +lib\lib/Object/InsideOut.pm line 55. Compilation failed in require at t\01-basic.t line 7. BEGIN failed--compilation aborted at t\01-basic.t line 7. t\01-basic......dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-23 Failed 23/23 tests, 0.00% okay t\02-auto.......Can't locate Exception/Class.pm in @INC (@INC contains +: C:\Perl\ +packages\Object-InsideOut-0.02.00\blib\lib C:\Perl\packages\Object-In +sideOut-0. +0 BEGIN failed--compilation aborted at C:\Perl\packages\Object-InsideOut +-0.02.00\b +lib\lib/Object/InsideOut.pm line 55. Compilation failed in require at t\02-auto.t line 7. BEGIN failed--compilation aborted at t\02-auto.t line 7. t\02-auto.......dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-6 Failed 6/6 tests, 0.00% okay t\03-threads....Can't locate Exception/Class.pm in @INC (@INC contains +: C:\Perl\ +packages\Object-InsideOut-0.02.00\blib\lib C:\Perl\packages\Object-In +sideOut-0. +0 BEGIN failed--compilation aborted at C:\Perl\packages\Object-InsideOut +-0.02.00\b +lib\lib/Object/InsideOut.pm line 55. Compilation failed in require at t\03-threads.t line 18. BEGIN failed--compilation aborted at t\03-threads.t line 18. t\03-threads....dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-12 Failed 12/12 tests, 0.00% okay t\04-shared.....Can't locate Exception/Class.pm in @INC (@INC contains +: C:\Perl\ +packages\Object-InsideOut-0.02.00\blib\lib C:\Perl\packages\Object-In +sideOut-0. +0 BEGIN failed--compilation aborted at C:\Perl\packages\Object-InsideOut +-0.02.00\b +lib\lib/Object/InsideOut.pm line 55. Compilation failed in require at t\04-shared.t line 23. BEGIN failed--compilation aborted at t\04-shared.t line 23. t\04-shared.....dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 1-12 Failed 12/12 tests, 0.00% okay Failed Test Stat Wstat Total Fail Failed List of Failed ---------------------------------------------------------------------- +--------- t\01-basic.t 2 512 23 46 200.00% 1-23 t\02-auto.t 2 512 6 12 200.00% 1-6 t\03-threads.t 2 512 12 24 200.00% 1-12 t\04-shared.t 2 512 12 24 200.00% 1-12 Failed 4/4 test scripts, 0.00% okay. 53/53 subtests failed, 0.00% okay +. NMAKE : fatal error U1077: 'C:\Perl\bin\perl.exe' : return code '0x2' Stop.

Tracing the testscript through, the failure appears to be when the test for is_sharing() is called at InsideOut.pm(388):

# Share the hash, if applicable if (is_sharing($pkg)) { threads::shared::share($hash) }

and

sub is_sharing : PRIVATE { my $class = $_[0]; # If not 'use threads::shared;', return false if (! $threads::shared::threads_shared) { return; } return ($IS_SHARING{$class}->[0]); }

The if suceeds, so the function returns undef with the result that the hash is not shared.

Without claiming to have read or traced every line, I cannot see anywhere in InsideOut.pm where threads::shared is ever used or required. What am I missing?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

In reply to Re: New Module Announcement: Object::InsideOut by BrowserUk
in thread New Module Announcement: Object::InsideOut by jdhedden

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others studying the Monastery: (3)
    As of 2015-07-06 00:26 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









      Results (68 votes), past polls