The latest test reports on CPAN show up at
    http://www.cpantesters.org/distro/P/P.html.

In there, only 3 people had failures:
    With 1 tester having 1 report on MSWIN on XP in German.
    With 2nd tester having 3 FAILS on perl 5.{8.{8,9},18.1}
        but 11 PASSES on other versions.
    With a 3rd tester, having 100% fails (23/23 FAIL).

Except for the 5.8 version of perl, which might have some
compat prob(s) I need to work around, the rest
are the same error as commented on here:
    http://www.perlmonks.org/?node_id=1061652.

Specifically, these lines that seemingly conflict:

PERL_DL_NONLAZY=1 /home/sand/src/perl/repoperls/installed-perls/perl/v +5.12.5/9980/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" + "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/a +rch')" t/*.t Can't locate mem.pm in @INC (you may need to install the mem module) ( +@INC contains: [...]:.) at lib/P.pm line 150. BEGIN failed--compilation aborted at lib/P.pm line 150. ## and ------/PREREQUISITES/------ Prerequisite modules loaded: requires: Module Need Have ------------------- ------ -------- mem v0.3.2 0.3.2 Test::Simple 0.44 1.001002 build_requires: Module Need Have ------------------- ------ -------- mem v0.3.2 0.3.2 ----------------------------
This was also a problem in 1.1.1, but there it was near 100%, across the board.

I also had a "use_ok(P)" and use_ok(mem) at the beginning
-- and called BAIL_OUT if they were not found. I
tested the missing cases, and DID get the BAIL_OUT message.

So now I'm getting 'mem' being both present and non-present
in the same test. This doesn't make sense.

I did contact the tester with all the fails and asked if
they could think of anything that might be causing
this... will have to see if they have ideas or even
respond (they might be busy or something)...

Anyway -- just thought I'd throw this out, since this
aspect of the original post managed to not be addressed
(likely due to no one else being a physicist
who could explain how Schrodinger's theories applied to perl testing;
:^| ).
--------------
Got email back from user.

They said it looked like the program under test (being called from the test program), did not have the correct PERL5LIB set in the environment. It seems test programs are expected to copy %INC to PERL5LIB? That seems an odd requirement for a test script???

I.e. a Test harness driven by some script, that calls or invokes program under test with various inputs, and checks for correct output. At least that's how I'm used to testing, since you don't want your scripts to be in the same program as the program under test so the scripts won't be accidently mangled by the program under test. Is that not correct procedure? *wimper*?


In reply to cpan test redux...better, but... by perl-diddler

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!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • 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, details, 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, summary, 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.