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 ?
In reply to make test hangs by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |