petdance/test-www-mechanize

Tests fail and hang at t/click_ok.t on Perl 5.16.3 on CentOS 7

Closed this issue · 1 comments

[daniel@XXX ~]$ cpanm -v Test::WWW::Mechanize
cpanm (App::cpanminus) 1.7044 on perl 5.016003 built for x86_64-linux-thread-multi
Work directory is /home/daniel/.cpanm/work/1627404921.4458
You have make /usr/bin/make
You have LWP 6.55
You have /usr/bin/tar: tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching Test::WWW::Mechanize () on cpanmetadb ...
--> Working on Test::WWW::Mechanize
Fetching http://www.cpan.org/authors/id/P/PE/PETDANCE/Test-WWW-Mechanize-1.54.tar.gz ... OK
Unpacking Test-WWW-Mechanize-1.54.tar.gz
Test-WWW-Mechanize-1.54/
Test-WWW-Mechanize-1.54/Changes
Test-WWW-Mechanize-1.54/t/
Test-WWW-Mechanize-1.54/t/manylinks.html
Test-WWW-Mechanize-1.54/t/autolint.t
Test-WWW-Mechanize-1.54/t/title_is.t
Test-WWW-Mechanize-1.54/t/headers.t
Test-WWW-Mechanize-1.54/t/link_status.t
Test-WWW-Mechanize-1.54/t/click_ok.t
Test-WWW-Mechanize-1.54/t/fluffy.html
Test-WWW-Mechanize-1.54/t/get_ok.t
Test-WWW-Mechanize-1.54/t/head_ok-parms.t
Test-WWW-Mechanize-1.54/t/bad.html
Test-WWW-Mechanize-1.54/t/text_contains.t
Test-WWW-Mechanize-1.54/t/has_tag.t
Test-WWW-Mechanize-1.54/t/content_lacks.t
Test-WWW-Mechanize-1.54/t/autotidy.t
Test-WWW-Mechanize-1.54/t/new.t
Test-WWW-Mechanize-1.54/t/followable_links.t
Test-WWW-Mechanize-1.54/t/table.html
Test-WWW-Mechanize-1.54/t/page_links_content.t
Test-WWW-Mechanize-1.54/t/stuff_inputs.t
Test-WWW-Mechanize-1.54/t/html/
Test-WWW-Mechanize-1.54/t/html/scratch.html
Test-WWW-Mechanize-1.54/t/html/form.html
Test-WWW-Mechanize-1.54/t/lacks_uncapped_inputs.t
Test-WWW-Mechanize-1.54/t/pod.t
Test-WWW-Mechanize-1.54/t/scrape_text_by_id.t
Test-WWW-Mechanize-1.54/t/submit_form_ok.t
Test-WWW-Mechanize-1.54/t/goodlinks.html
Test-WWW-Mechanize-1.54/t/links_ok.t
Test-WWW-Mechanize-1.54/t/stuff_inputs.html
Test-WWW-Mechanize-1.54/t/html_lint_ok.t
Test-WWW-Mechanize-1.54/t/TestServer.pm
Test-WWW-Mechanize-1.54/t/get_ok-parms.t
Test-WWW-Mechanize-1.54/t/badlinks.html
Test-WWW-Mechanize-1.54/t/good.html
Test-WWW-Mechanize-1.54/t/00-load.t
Test-WWW-Mechanize-1.54/t/follow_link_ok.t
Test-WWW-Mechanize-1.54/t/lacks_uncapped_inputs-good.html
Test-WWW-Mechanize-1.54/t/content_contains.t
Test-WWW-Mechanize-1.54/t/page_links_ok.t
Test-WWW-Mechanize-1.54/t/html_tidy_ok.t
Test-WWW-Mechanize-1.54/t/head_ok.t
Test-WWW-Mechanize-1.54/t/lacks_uncapped_inputs-bad.html
Test-WWW-Mechanize-1.54/t/put_ok.t
Test-WWW-Mechanize-1.54/t/delete_ok.t
Test-WWW-Mechanize-1.54/t/pod-coverage.t
Test-WWW-Mechanize-1.54/t/button_exists.t
Test-WWW-Mechanize-1.54/t/id_exists.html
Test-WWW-Mechanize-1.54/t/id_exists.t
Test-WWW-Mechanize-1.54/t/link_content.t
Test-WWW-Mechanize-1.54/Makefile.PL
Test-WWW-Mechanize-1.54/README.md
Test-WWW-Mechanize-1.54/Mechanize.pm
Test-WWW-Mechanize-1.54/MANIFEST
Test-WWW-Mechanize-1.54/META.yml
Test-WWW-Mechanize-1.54/META.json
Entering Test-WWW-Mechanize-1.54
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (6.68)
Running Makefile.PL
Configuring Test-WWW-Mechanize-1.54 ... You don't have HTML::Lint 2.20 installed, so cannot use autolinting.
Checking if your kit is complete...
Looks good
Writing Makefile for Test::WWW::Mechanize
Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Checking if you have HTML::Form 0 ... Yes (6.07)
Checking if you have Test::LongString 0.15 ... Yes (0.17)
Checking if you have parent 0 ... Yes (0.225)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.68)
Checking if you have WWW::Mechanize 1.68 ... Yes (2.03)
Checking if you have Test::Builder::Tester 1.09 ... Yes (1.302183)
Checking if you have Carp 0 ... Yes (1.26)
Checking if you have HTTP::Server::Simple 0.42 ... Yes (0.52)
Checking if you have Test::More 0.96 ... Yes (1.302183)
Checking if you have HTML::TokeParser 0 ... Yes (3.69)
Checking if you have Carp::Assert::More 1.16 ... Yes (1.26)
Checking if you have URI::file 0 ... Yes (4.21)
Checking if you have HTTP::Server::Simple::CGI 0 ... Yes (undef)
Checking if you have LWP 6.02 ... Yes (6.55)
Building and testing Test-WWW-Mechanize-1.54 ... cp Mechanize.pm blib/lib/Test/WWW/Mechanize.pm
Manifying blib/man3/Test::WWW::Mechanize.3pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-load.t ................ 1/1 # Testing Test::WWW::Mechanize 1.54, with WWW::Mechanize 2.03, LWP 6.55, Test::More 1.302183, Perl 5.016003, /usr/bin/perl
# Optional HTML::Lint not found. Install it to use additional features.
# Optional HTML::Tidy5 not found. Install it to use additional features.
t/00-load.t ................ ok   
t/autolint.t ............... skipped: HTML::Lint 2.20 is not installed, cannot test autolint
t/autotidy.t ............... skipped: Optional HTML::Tidy5 1.00 is not installed, cannot test autotidy.
t/button_exists.t .......... ok   
t/click_ok.t ............... # Test server http://127.0.0.1:27403 as PID 4526
t/click_ok.t ............... 1/6 
#   Failed test 'GET http://127.0.0.1:27403/form.html'
#   at t/click_ok.t line 21.
# 403
# Forbidden
Can't call method "click" on an undefined value at /home/daniel/perl5/lib/perl5/WWW/Mechanize.pm line 963.
# Looks like your test exited with 255 just after 2.

The cursor sits in the next line but the install process hangs and waits forever.

Looks like an issue with the thread management in t/TestServer.pm?

This is Perl 5.16.3 on CentOS 7.

This should be fixed with b17a153