Subject: | W::Mech fails at t/click around test 5 on cygwin w/ perl 5.8.0 |
# Distribution name and version (For example, "DBIx-SearchBuilder-0.46")
0.722 (see below)
# Perl version (Find this by running the command perl -v)
see below
# Operating System vendor and version (Find this by running the command uname -a)
see below
The testing under cpan hung with the last output being
t/click.................NOK 5
after which the process was interrupted by <CTRL>-C. See full output below for two instances.
I suspect this is due to a problem in Test::HTTP::LocalServer in my environment. I am willing to test this, but do not know how to do so. Note the error:
Can't even fetch local url at t/click.t line 19, <$server> line 1.
and the source of t/click.t :
(17) my $response = $mech->get( $server->url );
(18) isa_ok( $response, 'HTTP::Response', 'Got back a response' );
(19) ok( $response->is_success, 'Got URL' ) or die "Can't even fetch local url";
FWIW, I use a proxy for http requests. WWW::Mechanize believes I am not connected to the internet, but I am.
Also, I have noted that sometimes CYGWIN is a little confusing about whether something should be "file://name" or "file:///name".
Cut and paste from first time:
/usr/bin/make -- OK
Running make test
/usr/bin/cygperl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
# Testing WWW::Mechanize 0.722
t/00.load...............ok
t/98.rules..............ok
t/add_header............ok
1/4 skipped: Test::Memory::Cycle not installed
t/aliases...............ok
t/area_link.............ok
4/9 skipped: Test::Memory::Cycle not installed
t/autocheck.............ok 2/5Use of uninitialized value in pattern match (m//)
at /usr/lib/perl5/site_perl/5.8.0/LWP/Protocol.pm line 58.
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site
_perl/5.8.0/LWP/Protocol.pm line 38.
Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.8.0/LWP/Us
erAgent.pm line 194.
Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.
8.0/LWP/Protocol.pm line 58.
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site
_perl/5.8.0/LWP/Protocol.pm line 38.
Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.8.0/LWP/Us
erAgent.pm line 194.t/autocheck.............ok 3/5
t/autocheck.............ok
t/click.................ok 3/10Use of uninitialized value in pattern match (m//)
at /usr/lib/perl5/site_perl/5.8.0/LWP/Protocol.pm line 58, <$server> line 1.
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site
_perl/5.8.0/LWP/Protocol.pm line 38, <$server> line 1.
Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.8.0/LWP/Us
erAgent.pm line 194, <$server> line 1.
# Failed test (t/click.t at line 19)
Can't even fetch local url at t/click.t line 19, <$server> line 1.
Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.
8.0/LWP/Protocol.pm line 58, <$server> line 1.t/click.................ok 4/10
Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site
_perl/5.8.0/LWP/Protocol.pm line 38, <$server> line 1.
Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/5.8.0/LWP/Us
erAgent.pm line 194, <$server> line 1.
t/click.................NOK 5make: *** [test_dynamic] Interrupt
# Looks like you planned 10 tests but only ran 5.
# Looks like your test died just after 5.
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
Show quoted text
cpan>
cpan> exit
Lockfile removed.
WESTMWJ 08:29:57 /cygdrive/c/Documents and Settings/westmwj/My Documents
$ cygperl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=cygwin, osvers=1.3.22(0.7832), archname=cygwin-multi-64int
uname='cygwin_nt-5.0 ismene 1.3.22(0.7832) 2003-03-18 09:20 i586 unknown unk
nown cygwin '
config_args='-de -Dmksymlinks -Dusemultiplicity -Duse64bitint -Doptimize=-O3
-Dman3ext=3pm'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=defi
ne
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=define use64bitall=undef uselongdouble=undef
usemymalloc=y, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing',
optimize='-O3',
cppflags='-DPERL_USE_SAFE_PUTENV -fno-strict-aliasing'
ccversion='', gccversion='3.2 20020927 (prerelease)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lsee
ksize=4
alignbytes=8, prototype=define
Linker and Libraries:
ld='ld2', ldflags =' -s -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib /lib
libs=-lgdbm -ldb -lcrypt -lutil -lgdbm_compat
perllibs=-lcrypt -lutil -lgdbm_compat
libc=/usr/lib/libc.a, so=dll, useshrplib=true, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' -s'
cccdlflags=' ', lddlflags=' -s -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_64_BIT_INT USE_LARGE_FILES PERL_IMPLICI
T_CONTEXT
Built under cygwin
Compiled at Aug 29 2003 12:06:59
%ENV:
CYGWIN=""
@INC:
/usr/lib/perl5/5.8.0/cygwin-multi-64int
/usr/lib/perl5/5.8.0
/usr/lib/perl5/site_perl/5.8.0/cygwin-multi-64int
/usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl
.
$ uname -a
CYGWIN_NT-5.0 AC431380 1.5.4(0.94/3/2) 2003-09-12 23:08 i686 unknown unknown Cyg
win
cut and paste from second time:
Removing previously used /lib/perl5/5.8.0/.cpan/build/WWW-Mechanize-0.72
CPAN.pm: Going to build P/PE/PETDANCE/WWW-Mechanize-0.72.tar.gz
It seems that you are not directly connected to the Internet. Some
of the WWW::Mechanize tests interact with websites such as Google,
in addition to its own internal tests.
Do you want to skip these tests? [y]
Do you want to install the mech-dump utility? [y]
It looks like you don't have IO::Socket::SSL installed. You will
not be able to process https:// URLs correctly.
WWW::Mechanize likes to have Test::Memory::Cycle for some of its tests,
but doesn't require it.
Checking if your kit is complete...
Looks good
Writing Makefile for WWW::Mechanize
cp lib/WWW/Mechanize/Examples.pod blib/lib/WWW/Mechanize/Examples.pod
cp lib/WWW/Mechanize/Link.pm blib/lib/WWW/Mechanize/Link.pm
cp lib/WWW/Mechanize/FAQ.pod blib/lib/WWW/Mechanize/FAQ.pod
cp lib/WWW/Mechanize.pm blib/lib/WWW/Mechanize.pm
cp script/mech-dump blib/script/mech-dump
/usr/bin/cygperl.exe "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/mech-dum
p
/usr/bin/make -- OK
Running make test
/usr/bin/cygperl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib',
'blib/arch')" t/*.t
t/00.load...............ok 2/2# Testing WWW::Mechanize 0.72
t/00.load...............ok
t/98.rules..............ok
t/add_header............ok
1/4 skipped: Test::Memory::Cycle not installed
t/aliases...............ok
t/area_link.............ok
4/9 skipped: Test::Memory::Cycle not installed
t/autocheck.............ok
t/click.................ok 4/10
Can't even fetch local url at t/click.t line 19, <$server> line 1.
t/click.................NOK 5make: *** [test_dynamic] Interrupt
# Looks like you planned 10 tests but only ran 5.
# Looks like your test died just after 5.
/usr/bin/make test -- NOT OK
Running make install
make test had returned bad status, won't install without force
Show quoted textcpan>
Thanks! I <WANT> to use this module.