Subject: | Can't call method "value" on an undefined value when running make test |
I'm failing a number of tests in version 0.60 under perl 5.8.1. Here's the output I'm seeing:
030930-19:50:11 waltman@waltman:/tmp/WWW-Mechanize-0.60% perl Makefile.PL
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.
Checking if your kit is complete...
Looks good
Writing Makefile for WWW::Mechanize
030930-19:50:17 waltman@waltman:/tmp/WWW-Mechanize-0.60% make
cp lib/WWW/Mechanize/Link.pm blib/lib/WWW/Mechanize/Link.pm
cp lib/WWW/Mechanize.pm blib/lib/WWW/Mechanize.pm
cp lib/WWW/Mechanize/Examples.pod blib/lib/WWW/Mechanize/Examples.pod
cp script/mech-dump blib/script/mech-dump
/usr/local/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/mech-dump
Manifying blib/man1/mech-dump.1
Manifying blib/man3/WWW::Mechanize.3
Manifying blib/man3/WWW::Mechanize::Link.3
Manifying blib/man3/WWW::Mechanize::Examples.3
030930-19:50:27 waltman@waltman:/tmp/WWW-Mechanize-0.60% make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/live/*.t
t/00.load.............ok
t/98.rules............ok
t/99.pod..............ok
t/add_header..........ok
t/area_link...........ok
t/carp................ok
t/click...............ok 5/8Can't call method "value" on an undefined value at /tmp/WWW-Mechanize-0.60/blib/lib/WWW/Mechanize.pm line 437, <$server> line 1.
# Looks like you planned 8 tests but only ran 5.
# Looks like your test died just after 5.
t/click...............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 6-8
Failed 3/8 tests, 62.50% okay
t/failure.............NOK 10# Failed test (t/failure.t at line 28)
# got: '0'
# expected: '1'
t/failure.............NOK 11# Failed test (t/failure.t at line 29)
# The object isn't defined
t/failure.............ok 16/16# Looks like you failed 2 tests of 16.
t/failure.............dubious
Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 10-11
Failed 2/16 tests, 87.50% okay
t/field...............ok 3/4Can't call method "value" on an undefined value at /tmp/WWW-Mechanize-0.60/blib/lib/WWW/Mechanize.pm line 437.
# Looks like you planned 4 tests but only ran 3.
# Looks like your test died just after 3.
t/field...............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 4
Failed 1/4 tests, 75.00% okay
t/find_link...........ok
t/follow..............ok
t/form................NOK 6# Failed test (t/form.t at line 23)
# Can select the first form isn't defined
t/form................NOK 10# Failed test (t/form.t at line 30)
# Can select the form isn't defined
t/form................NOK 12# Failed test (t/form.t at line 35)
# The object isn't defined
t/form................NOK 14# Failed test (t/form.t at line 39)
# The object isn't defined
t/form................ok 15/15# Looks like you failed 4 tests of 15.
t/form................dubious
Test returned status 4 (wstat 1024, 0x400)
DIED. FAILED tests 6, 10, 12, 14
Failed 4/15 tests, 73.33% okay
t/get.................ok
t/link................ok
t/live/back...........ok 10/31Can't call method "value" on an undefined value at /tmp/WWW-Mechanize-0.60/blib/lib/WWW/Mechanize.pm line 469.
# Looks like you planned 31 tests but only ran 10.
# Looks like your test died just after 10.
t/live/back...........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 11-31
Failed 21/31 tests, 32.26% okay
t/live/click..........ok 5/8Can't call method "value" on an undefined value at /tmp/WWW-Mechanize-0.60/blib/lib/WWW/Mechanize.pm line 437.
# Looks like you planned 8 tests but only ran 5.
# Looks like your test died just after 5.
t/live/click..........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 6-8
Failed 3/8 tests, 62.50% okay
t/live/follow.........ok
t/live/follow_link....ok
t/live/form...........NOK 6# Failed test (t/live/form.t at line 20)
# Can select the first form isn't defined
t/live/form...........NOK 10# Failed test (t/live/form.t at line 28)
# Can select the form isn't defined
t/live/form...........NOK 12# Failed test (t/live/form.t at line 33)
# The object isn't defined
t/live/form...........NOK 14# Failed test (t/live/form.t at line 37)
# The object isn't defined
t/live/form...........ok 15/15# Looks like you failed 4 tests of 15.
t/live/form...........dubious
Test returned status 4 (wstat 1024, 0x400)
DIED. FAILED tests 6, 10, 12, 14
Failed 4/15 tests, 73.33% okay
t/live/get............ok
t/live/reload.........ok
t/live/submit.........ok 5/8Can't call method "value" on an undefined value at /tmp/WWW-Mechanize-0.60/blib/lib/WWW/Mechanize.pm line 437.
# Looks like you planned 8 tests but only ran 5.
# Looks like your test died just after 5.
t/live/submit.........dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 6-8
Failed 3/8 tests, 62.50% okay
t/mech-dump...........# Failed test (t/mech-dump.t at line 21)
# got: ''
# expected: 'GET file:/target-page
# hl=en (hidden)
# ie=ISO-8859-1 (hidden)
# q=
# btnG=Google Search (submit)
# btnI=I'm Feeling Lucky (submit)
#
# '
# Looks like you failed 1 tests of 1.
t/mech-dump...........dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/new.................ok
t/page_stack..........ok
t/referer.............ok
t/reload..............ok
t/submit..............ok 7/11Can't call method "value" on an undefined value at /tmp/WWW-Mechanize-0.60/blib/lib/WWW/Mechanize.pm line 437, <$server> line 1.
# Looks like you planned 11 tests but only ran 7.
# Looks like your test died just after 7.
t/submit..............dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 8-11
Failed 4/11 tests, 63.64% okay
t/tick................ok 4/6There is no form numbered 1 at t/tick.t line 17
Can't call method "find_input" on an undefined value at /tmp/WWW-Mechanize-0.60/blib/lib/WWW/Mechanize.pm line 492.
# Looks like you planned 6 tests but only ran 4.
# Looks like your test died just after 4.
t/tick................dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 5-6
Failed 2/6 tests, 66.67% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------
t/click.t 255 65280 8 6 75.00% 6-8
t/failure.t 2 512 16 2 12.50% 10-11
t/field.t 255 65280 4 2 50.00% 4
t/form.t 4 1024 15 4 26.67% 6 10 12 14
t/live/back.t 255 65280 31 42 135.48% 11-31
t/live/click.t 255 65280 8 6 75.00% 6-8
t/live/form.t 4 1024 15 4 26.67% 6 10 12 14
t/live/submit.t 255 65280 8 6 75.00% 6-8
t/mech-dump.t 1 256 1 1 100.00% 1
t/submit.t 255 65280 11 8 72.73% 8-11
t/tick.t 255 65280 6 4 66.67% 5-6
Failed 11/29 test scripts, 62.07% okay. 48/358 subtests failed, 86.59% okay.
make: *** [test_dynamic] Error 2
And here's the output from perl -V:
Summary of my perl5 (revision 5.0 version 8 subversion 1) configuration:
Platform:
osname=linux, osvers=2.4.22-1-686, archname=i686-linux
uname='linux waltman 2.4.22-1-686 #1 fri sep 5 23:04:29 est 2003 i686 gnulinux '
config_args='-des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O3',
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='3.3.2 20030908 (Debian prerelease)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldb -ldl -lm -lcrypt -lutil -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.3.2.so, so=so, useshrplib=false, libperl=libperl.a
gnulibc_version='2.3.2'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under linux
Compiled at Sep 29 2003 23:36:45
@INC:
/usr/local/lib/perl5/5.8.1/i686-linux
/usr/local/lib/perl5/5.8.1
/usr/local/lib/perl5/site_perl/5.8.1/i686-linux
/usr/local/lib/perl5/site_perl/5.8.1
/usr/local/lib/perl5/site_perl/5.8.0/i686-linux
/usr/local/lib/perl5/site_perl/5.8.0
/usr/local/lib/perl5/site_perl
.