Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

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

People
Owner: Nobody in particular
Requestors: guanboon [...] gmail.com
Cc:
AdminCc:

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



Subject: WWW::Mechanize fail live/back and live/overload in Perl 5.87 in SUSE 10
While installing WWW::Mechanize in SUSE 10 I have the following failure. t/live/back.............ok 1/32 # Failed test 'Followed OK' # in t/live/back.t at line 20. t/live/back.............ok 28/32# Looks like you failed 1 test of 32. t/live/back.............dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 4 Failed 1/32 tests, 96.88% okay t/live/click............ok t/live/follow...........ok t/live/follow_link......ok t/live/form.............ok t/live/get..............ok 12/26Parsing of undecoded UTF-8 will give garbage whe n decoding entities at /home/guanboon/Download/WWW-Mechanize-1.16/blib/lib/WWW/M echanize.pm line 449. t/live/get..............ok t/live/reload...........ok t/live/submit...........ok t/local/back............ok 1/38# Started http://localhost:1039/ t/local/back............ok t/local/click...........ok 1/10# Started http://localhost:1041/ t/local/click...........ok t/local/click_button....ok 1/18# Started http://localhost:1042/ t/local/click_button....ok t/local/failure.........ok 1/17# Started http://localhost:1043/ t/local/failure.........ok t/local/follow..........ok 1/28# Started http://localhost:1044/ t/local/follow..........ok t/local/form............ok 1/16# Started http://localhost:1045/ t/local/form............ok t/local/get.............ok 1/37# Started http://localhost:1046/ t/local/get.............ok t/local/overload........ok 1/11# Started http://localhost:1047/ Use of uninitialized value in pattern match (m//) at t/local/overload.t line 69, <$server> line 1. # Failed test 'Standard mech chokes on bogus HTML' # in t/local/overload.t at line 69. # undef # doesn't match '(?i-xsm:bad.*select)' t/local/overload........NOK 4# Looks like you failed 1 test of 11. t/local/overload........dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 4 Failed 1/11 tests, 90.91% okay t/local/page_stack......ok 1/11# Started http://localhost:1048/ t/local/page_stack......ok t/local/referer.........ok t/local/reload..........ok 1/16# Started http://localhost:1050/ t/local/reload..........ok t/local/submit..........ok 1/15# Started http://localhost:1051/ t/local/submit..........ok t/mech-dump.............ok t/new...................ok t/pod-coverage..........skipped all skipped: Test::Pod::Coverage 1.04 required for testing POD coverage t/pod...................ok t/regex-error...........skipped all skipped: Test::Warn required to test t/regex-error.t t/select................ok t/taint.................skipped all skipped: Test::Taint required for checking taintedness t/tick..................ok t/upload................ok t/warn..................skipped all skipped: Test::Warn required to test warn t/warnings..............skipped all skipped: Test::Warn required to test warnings Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/live/back.t 1 256 32 1 3.12% 4 t/local/overload.t 1 256 11 1 9.09% 4 6 tests skipped. Failed 2/49 test scripts, 95.92% okay. 2/594 subtests failed, 99.66% okay. make: *** [test_dynamic] Error 255 Regards Guan-Boon
On Sa. 21. Jan. 2006, 02:26:09, guest wrote: Show quoted text
> While installing WWW::Mechanize in SUSE 10 I have the following > failure. >
[...] Show quoted text
> t/live/back.t 1 256 32 1 3.12% 4 > t/local/overload.t 1 256 11 1 9.09% 4 > 6 tests skipped. > Failed 2/49 test scripts, 95.92% okay. 2/594 subtests failed, 99.66% > okay. > make: *** [test_dynamic] Error 255 >
The same failures also on FreeBSD 4.9 with perl 5.8.8 (MAINT26907)
From: guanboon [...] gmail.com
On Sat Jan 28 09:26:11 2006, SREZIC wrote: Show quoted text
> On Sa. 21. Jan. 2006, 02:26:09, guest wrote:
> > While installing WWW::Mechanize in SUSE 10 I have the following > > failure. > >
> [...]
> > t/live/back.t 1 256 32 1 3.12% 4 > > t/local/overload.t 1 256 11 1 9.09% 4 > > 6 tests skipped. > > Failed 2/49 test scripts, 95.92% okay. 2/594 subtests failed, 99.66% > > okay. > > make: *** [test_dynamic] Error 255 > >
> > The same failures also on FreeBSD 4.9 with perl 5.8.8 (MAINT26907) > > >
Hi, The following method will skip the test on live and local. So that when make test you will not see any failure. This is a method to go around it. But the issue on failing the live and local test are still there. perl Make.PL --nolive --nolocal make make test make install Regards Guan Boon
From: Grétar
I was installing WWW::Mechanize just now and had the same problem with t/live/back.t. The explanation was clear, the test was trying to follow the second link on google.com's page, but the point is when you have a gmail account (like I do) three extra links are added at the top of google's page (Personalized Home, etc.), leaving the second link a https link which fails the test. After some code examination I added the url_regex attribute $mech->follow_link( n=>2, url_regex => qr(http://)); and the test ran safely. Thanks for a great package! It totally rocks! Grétar Hreggviðsson grellir()gmail!com
Fixed in 1.18.