I'm having a problem installing some modules where make test fails. I've
got no clue how to troubleshoot them. As an example - when trying to
install Net::Telnet these are the summarized results:
$ perl Makefile.pl
Checking if your kit is complete...
Looks good
Writing Makefile for Net::Telnet
$ make
cp lib/Net/Telnet.pm blib/lib/Net/Telnet.pm
Manifying blib/man3/Net::Telnet.3pm
$ maketest
PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib
-I/usr/lib/perl5/5.6.1/i386-linux -I/usr/lib/perl5/5.6.1 -e 'use
Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t
t/select............FAILED test 3
Failed 1/3 tests, 66.67% okay
Failed Test Status Wstat Total Fail Failed List of Failed
--------------------------------------------------------------------------------t/select.t
3 1 33.33% 3
Failed 1/1 test scripts, 0.00% okay. 1/3 subtests failed, 66.67% okay.
make: *** [test_dynamic] Error 29
I looked in t/select.t (only file in there) but can't figure out what
test 3 is.
Here's t/select.t
#!./perl
use strict;
require 5.002;
## Main program.
{
my (
$bitmask,
$nfound,
);
print "1..3\n";
## Does this OS support sockets?
use Socket qw(AF_INET SOCK_STREAM);
test (socket SOCK, AF_INET, SOCK_STREAM, 0);
## Does this OS support select()?
vec($bitmask='', fileno(SOCK), 1) = 1;
eval { $nfound = select($bitmask, '', '', 0) };
test ($@ eq "");
## Did select() return a correct value?
test (defined($nfound) and $nfound == 0);
exit;
} # end main program
############################ Subroutines #############################
BEGIN {
my $testnum = 0;
sub test {
if (defined($_[0]) and $_[0]) {
print "ok ", ++$testnum, "\n";
}
else {
print "not ok ", ++$testnum, "\n";
}
} # end sub test
}
Too much here I don't understand. For instance - what's "#!./perl", I
thought it was "#!/usr/bin/perl".
Should I go ahead with install? Guidance appreciated.
Kevin
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]