Hi Perl Manks and Gurus,

I’m stuck in getting any Perl module tested via the make test procedure generated. Here is the output of make with the verbose option activated:

/tmp/DBI-1.633>make test TEST_VERBOSE=1

PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "- e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/ *.t
t/00simple_test.t ............... <----- here the make hangs and waits for ever !

when I hit the break key I get:

make: *** test_dynamic Quit

The test script just logs a message and is doing nothing else.

Here is the script 00simple_test.t

#!perl -w use strict; my $LOG; my $LOG_FILE = './test_log'; my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(tim +e); my $timestamp = sprintf ("%4d-%02d-%02d %02d:%02d:%02d",$year+1900,$mo +n+1,$mday, $hour,$min,$sec); open ($LOG, '>', $LOG_FILE ) or die "Could not open the file $LOG_FIL +E!\n$!\n"; print $LOG "\n### START ############################################## +###########\n"; print $LOG "### $timestamp\n"; # ### Scripts that will run to check the module! # print "ok 1 - running the test $0\n"; print $LOG "ok 1 - running the test $0\n"; print $LOG "### E N D ################################################ +#########\n#"; 1;

Here is the log that was created:

/tmp/DBI-1.633>cat test_log

### START #########################################################
### 2015-02-12 17:13:21
ok 1 - running the test t/00simple_test.t
### E N D #########################################################

When I run the script it outputs this:

ok 1 - running the test t/00simple_test.t

I don’t know why the make hangs. The script itself runs o.k., writes the log entries and I think it also exits? I have no idea if it exits or if the exit is not recognized by the TEST::HARNESS or if I stucks in the ExtUtil module or what happened during the make test run.
The verbose even shows me any indication so I think the TEST::HARNESS has the problem.
Can anybody of you help me how I can isolate this problems to look a little closer to find the root cause ?

Regards WolliK

In reply to make test hangs by Anonymous Monk

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.