Subject: | make test fails at t/taint |
Summary:
When building WWW-Mechanize-Pluggable-1.04, testing fails at t/taint.t
with the following (unsnipped output from make test in the attached file):
[snip]
t/select...................ok
t/taint....................You tried to run a test without a plan at
t/taint.t line 17.
BEGIN failed--compilation aborted at t/taint.t line 18.
# Looks like your test died before it could output anything.
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/tick.....................ok
[snip]
For reference, here is that section from t/taint.t, with line numbers:
16 BEGIN {
17 use_ok( 'WWW::Mechanize::Pluggable' );
18 }
Steps to duplicate:
perl Makefile.PL
make
make test
It makes no difference whether Test::Taint is installed, and it makes no
difference whether I add --runtaint to the 'perl Makefile.PL'.
Steps to correct:
Remove the BEGIN block that surrounds line 17 and change the plan tests
value to 7. This appears to work both with and without the --runtaint
parameter to Makefile.PL. (Apologies for no patch.)
Platform:
uname -a
Linux kubuntu-1 2.6.22-14-generic #1 SMP Tue Feb 12 07:42:25 UTC 2008
i686 GNU/Linux
---
perl -V
Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
Platform:
osname=linux, osvers=2.6.15.7, archname=i486-linux-gnu-thread-multi
uname='linux terranova 2.6.15.7 #1 smp thu jul 12 14:27:56 utc 2007
i686 gnulinux '
config_args='-Dusethreads -Duselargefiles -Dccflags=-DDEBIAN
-Dcccdlflags=-fPIC -Darchname=i486-linux-gnu -Dprefix=/usr
-Dprivlib=/usr/share/perl/5.8 -Darchlib=/usr/lib/perl/5.8
-Dvendorprefix=/usr -Dvendorlib=/usr/share/perl5
-Dvendorarch=/usr/lib/perl5 -Dsiteprefix=/usr/local
-Dsitelib=/usr/local/share/perl/5.8.8
-Dsitearch=/usr/local/lib/perl/5.8.8 -Dman1dir=/usr/share/man/man1
-Dman3dir=/usr/share/man/man3 -Dsiteman1dir=/usr/local/man/man1
-Dsiteman3dir=/usr/local/man/man3 -Dman1ext=1 -Dman3ext=3perl
-Dpager=/usr/bin/sensible-pager -Uafs -Ud_csh -Uusesfio -Uusenm
-Duseshrplib -Dlibperl=libperl.so.5.8.8 -Dd_dosuid -des'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN
-fno-strict-aliasing -pipe -I/usr/local/include'
ccversion='', gccversion='4.1.3 20070929 (prerelease) (Ubuntu
4.1.2-16ubuntu2)', 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=-lgdbm -lgdbm_compat -ldb -ldl -lm -lpthread -lc -lcrypt
perllibs=-ldl -lm -lpthread -lc -lcrypt
libc=/lib/libc-2.6.1.so, so=so, useshrplib=true,
libperl=libperl.so.5.8.8
gnulibc_version='2.6.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP THREADS_HAVE_PIDS USE_ITHREADS
USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
Built under linux
Compiled at Dec 4 2007 08:56:39
%ENV:
PERL5LIB=""
PERL5_CPANPLUS_IS_RUNNING="11956"
PERL5_CPANPLUS_IS_VERSION="0.84"
PERL_READLINE_NOWARN="1"
@INC:
/etc/perl
/usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.8
/usr/share/perl/5.8
/usr/local/lib/site_perl
.
Subject: | WMP_test.txt |
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/00.load.t t/001_load.t t/002_plugin.t t/add_header.t t/aliases.t t/area_link.t t/autocheck.t t/clone.t t/die.t t/field.t t/find_image.t t/find_link-warnings.t t/find_link.t t/form-parsing.t t/frames.t t/hooks.t t/image-new.t t/image-parse.t t/link-base.t t/link-relative.t t/link.t t/new.t t/pod-coverage.t t/pod.t t/regex-error.t t/select.t t/taint.t t/tick.t t/upload.t t/warn.t t/warnings.t t/local/back.t t/local/click.t t/local/click_button.t t/local/failure.t t/local/follow.t t/local/form.t t/local/get.t t/local/hooks.t t/local/page_stack.t t/local/plugin.t t/local/referer.t t/local/reload-old.t t/local/reload.t t/local/submit.t t/notaint/00.load.t t/notaint/aliases.t t/notaint/autocheck.t t/notaint/clone.t t/notaint/die.t t/notaint/new.t t/notaint/regex-error.t t/notaint/warn.t t/notaint/warnings.t
t/00.load..................# Testing WWW::Mechanize::Pluggable 1.04
ok
t/001_load.................ok
t/002_plugin...............ok
t/add_header...............ok
t/aliases..................ok
t/area_link................ok
t/autocheck................ok
t/clone....................ok
t/die......................ok
t/field....................ok
t/find_image...............ok
t/find_link-warnings.......ok
t/find_link................ok
t/form-parsing.............ok
t/frames...................ok
t/hooks....................ok
t/image-new................ok
t/image-parse..............ok
t/link-base................ok
t/link-relative............ok
t/link.....................ok
t/local/back...............# Started http://localhost:34772/
ok
t/local/click..............# Started http://localhost:34491/
ok
t/local/click_button.......# Started http://localhost:55618/
ok
t/local/failure............# Started http://localhost:58411/
ok
t/local/follow.............# Started http://localhost:33701/
ok
t/local/form...............# Started http://localhost:41862/
ok
t/local/get................# Started http://localhost:43372/
ok
t/local/hooks..............# Started http://localhost:60997/
ok
t/local/page_stack.........# Started http://localhost:36055/
ok
t/local/plugin.............# Started http://localhost:37385/
ok
t/local/referer............ok
t/local/reload-old.........# Started http://localhost:48423/
ok
t/local/reload.............# Started http://localhost:36059/
ok
t/local/submit.............# Started http://localhost:55421/
ok
t/new......................ok
t/notaint/00.load..........# Testing WWW::Mechanize::Pluggable 1.04
ok
t/notaint/aliases..........ok
t/notaint/autocheck........ok
t/notaint/clone............ok
t/notaint/die..............ok
t/notaint/new..............ok
t/notaint/regex-error......ok
t/notaint/warn.............ok
t/notaint/warnings.........ok
t/pod-coverage.............ok
t/pod......................ok
t/regex-error..............ok
t/select...................ok
t/taint....................You tried to run a test without a plan at t/taint.t line 17.
BEGIN failed--compilation aborted at t/taint.t line 18.
# Looks like your test died before it could output anything.
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run
t/tick.....................ok
t/upload...................ok
t/warn.....................ok
t/warnings.................ok
Test Summary Report
-------------------
t/taint.t (Wstat: 65280 Tests: 0 Failed: 0)
Non-zero exit status: 255
Parse errors: No plan found in TAP output
Files=54, Tests=547, 47 wallclock secs ( 0.48 usr 0.99 sys + 28.76 cusr 9.94 csys = 40.17 CPU)
Result: FAIL
Failed 1/54 test programs. 0/547 subtests failed.
make: *** [test_dynamic] Error 255