The automated smoke test reports on my EBook-Tools module are being completely obscured by lines that look like:

Use of uninitialized value in string eq at (eval 46) line 1. Use of uninitialized value in string eq at (eval 47) line 1. Use of uninitialized value in string eq at (eval 48) line 1. Use of uninitialized value $_[1] in hash element at /usr/share/perl5/X +ML/Twig.pm line 5297. Use of uninitialized value in string eq at (eval 42) line 1. Use of uninitialized value in string eq at (eval 39) line 1.

As far as I can tell, this is entirely an artifact of Test::Harness. It doesn't happen when executing my code, it doesn't happen when running the tests by hand, and it doesn't happen when running the tests via prove. Some of the warning messages aren't even in my code! I'd have been inclined to ignore them, except that I've got either a missing dependency somewhere or a genuine portability bug that I can't find, and the smoke tests that are reporting the failure are also truncating before returning any useful information on where the failure is, so they're useless to me other than to say that some automated systems aren't testing the same way I am.

Does anyone know what causes this, and either how to stop it or how to set up a useful kind of bug report to Test::Harness?


In reply to Test::Harness and uninitialized value in eval by AZed

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.