Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Test-WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 53709
Status: resolved
Priority: 0/
Queue: Test-WWW-Mechanize

People
Owner: Nobody in particular
Requestors: ddascalescu+perl [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Tests on Strawberry 5.10.1 take very long, without a warning, then fail
Download (untitled) / with headers
text/plain 7.8k
For tests that are known to take a long while, it would be great to diag() a warning, so that the user doesn't think the test hangs. << C:\>cpan Test::WWW::Mechanize Database was generated on Thu, 14 Jan 2010 08:21:37 GMT Running install for module 'Test::WWW::Mechanize' Running make for P/PE/PETDANCE/Test-WWW-Mechanize-1.24.tar.gz Checksum for C:\strawberry\cpan\sources\authors\id\P\PE\PETDANCE\Test-WWW-Mechanize-1.24.tar.gz ok CPAN.pm: Going to build P/PE/PETDANCE/Test-WWW-Mechanize-1.24.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Test::WWW::Mechanize (C:\strawberry\perl\bin\perl.exe Makefile.PL exited with 0) CPAN::Reporter: Makefile.PL result is 'pass', No errors. cp Mechanize.pm blib\lib\Test\WWW\Mechanize.pm (C:\strawberry\c\bin\dmake.EXE exited with 0) CPAN::Reporter: dmake result is 'pass', No errors. PETDANCE/Test-WWW-Mechanize-1.24.tar.gz C:\strawberry\c\bin\dmake.EXE -- OK Running make test C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib\lib', 'blib\arch')" t/*.t # Testing Test::WWW::Mechanize 1.24, with WWW::Mechanize 1.60, LWP 5.833, Perl 5.010001, C:\STRAWB~1\perl\bin\perl.exe t/00load.t .............. ok t/autolint.t ............ skipped: HTML::Lint is not installed, cannot test autolint t/back_ok.t ............. ok t/click_ok.t ............ ok # Failed test 'Handles not finding it' # at t/content_contains.t line 39. # STDERR is: # # Failed test 'Where is Mungo?' # # at t/content_contains.t line 38. # # searched: "<html>\x{0a} <head>\x{0a} <title>Test Page</title>\x{0a} </h"... # # can't find: "Mungo" # # LCSS: "go" # # LCSS context: "ead>\x{0a} <body>\x{0a} <h1>Test Page</h1>\x{0a} <a href='go" # # not: # /#\s+Failed\ test.*?\n?.*?at\ t\/content_contains\.t line 38.*\n?/ # # # searched: "<html>\x{0a} <head>\x{0a} <title>Test Page</title>\x{0a} </h"... # # # can't find: "Mungo" # # as expected t/content_contains.t .... Failed 1/5 subtests t/content_lacks.t ....... ok t/follow_link_ok.t ...... ok t/followable_links.t .... ok t/get_ok-parms.t ........ ok t/get_ok.t .............. ok t/has_tag.t ............. ok t/head_ok-parms.t ....... ok t/head_ok.t ............. ok t/html_lint_ok.t ........ skipped: HTML::Lint is not installed, cannot test html_lint_ok t/link_content.t ........ ok t/link_status.t ......... ok t/links_ok.t ............ ok t/new.t ................. ok t/page_links_content.t .. ok t/page_links_ok.t ....... ok t/pod-coverage.t ........ ok t/pod.t ................. ok <-- long pause here # Failed test 'sanity check: we can load goodlinks.html' # at t/put_ok.t line 34. Use of uninitialized value $v in substitution (s///) at C:\strawberry\perl\vendor\lib/LWP/Protocol/http.pm line 164, <DATA> line 16. Use of uninitialized value $v in concatenation (.) or string at C:\strawberry\perl\vendor\lib/Net/HTTP/Methods.pm line 154, <DATA> line 16. # Failed test 'PUTs existing URI and reports success' # at t/put_ok.t line 38. # STDOUT is: # not ok 1 - Try to PUT goodlinks.html # # not: # ok 1 - Try to PUT goodlinks.html # # as expected # STDERR is: # # Failed test 'Try to PUT goodlinks.html' # # at t/put_ok.t line 37. # # 500 # # read timeout # # not: # # as expected <-- long pause here # Failed test 'And the result should be true' # at t/put_ok.t line 40. Use of uninitialized value $v in substitution (s///) at C:\strawberry\perl\vendor\lib/LWP/Protocol/http.pm line 164, <DATA> line 16. Use of uninitialized value $v in concatenation (.) or string at C:\strawberry\perl\vendor\lib/Net/HTTP/Methods.pm line 154, <DATA> line 16. <-- long pause here # Failed test 'PUTs existing URI and reports success - default desc' # at t/put_ok.t line 45. # STDOUT is: # not ok 1 - PUT http://localhost:13432/goodlinks.html # # not: # ok 1 - PUT http://localhost:13432/goodlinks.html # # as expected # STDERR is: # # Failed test 'PUT http://localhost:13432/goodlinks.html' # # at t/put_ok.t line 44. # # 500 # # read timeout # # not: # # as expected t/put_ok.t .............. Failed 4/11 subtests t/stuff_inputs.t ........ ok t/submit_form_ok.t ...... ok Test Summary Report ------------------- t/content_contains.t (Wstat: 0 Tests: 5 Failed: 1) Failed test: 5 t/put_ok.t (Wstat: 0 Tests: 11 Failed: 4) Failed tests: 3-4, 6-7 Files=25, Tests=201, 618 wallclock secs ( 0.19 usr + 0.16 sys = 0.34 CPU) Result: FAIL Failed 2/25 test programs. 5/201 subtests failed. dmake.EXE: Error code 255, while making 'test_dynamic' (C:\strawberry\c\bin\dmake.EXE test exited with 65280) CPAN::Reporter: Test result is 'fail', One or more tests failed. CPAN::Reporter: preparing a CPAN Testers report for Test-WWW-Mechanize-1.24 Do you want to review or edit the test report? (yes/no) [no] Do you want to send the report? (yes/no) [yes] CPAN::Reporter: test report will not be sent PETDANCE/Test-WWW-Mechanize-1.24.tar.gz C:\strawberry\c\bin\dmake.EXE test -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports PETDANCE/Test-WWW-Mechanize-1.24.tar.gz Running make install make test had returned bad status, won't install without force Show quoted text
>>
Summary of my perl5 (revision 5 version 10 subversion 1) configuration: Platform: osname=MSWin32, osvers=5.1, archname=MSWin32-x86-multi-thread uname='Win32 strawberryperl 5.10.1.0 #1 30 i386' config_args='undef' hint=recommended, useposix=true, d_sigaction=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='gcc', ccflags =' -s -O2 -DWIN32 -DHAVE_DES_FCRYPT -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-strict-aliasing -DPERL_MSVCRT_READFIX', optimize='-s -O2', cppflags='-DWIN32' ccversion='', gccversion='3.4.5', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='long long', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='g++', ldflags ='-s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib"' libpth=C:\strawberry\c\lib libs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 perllibs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 libc=, so=dll, useshrplib=true, libperl=libperl510.a gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib"' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PL_OP_SLAB_ALLOC USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_SITECUSTOMIZE Built under MSWin32 Compiled at Oct 21 2009 13:54:15 %ENV: PERLIO="perlio" @INC: C:/strawberry/perl/lib C:/strawberry/perl/site/lib C:\strawberry\perl\vendor\lib .
Fixed in 1.28. Please don't use the RT queue for bugs. Use the code.google.com queue.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.