Bug 166712

Summary: [patch] www/p5-WWW-Mechanize: fix test hangs.
Product: Ports & Packages Reporter: Rachel Flynn <rflynn>
Component: Individual Port(s)Assignee: Steve Wills <swills>
Status: Closed FIXED    
Severity: Affects Only Me CC: swills
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
www__p5-WWW-Mechanize.patch none

Description Rachel Flynn 2012-04-07 01:00:11 UTC
Tests in t/local all use LocalServer.pm, a module emulating a HTTP server.
This module closes a file handle from the child, after sending a
'quit_server' URL. This is supposed to stop the server, but does not on
FreeBSD, for reasons I'm unable to determine.
The filehandle cannot be closed SIGINFO shows that perl is in 'accept'.

Fix: The fix below is a work around. It kills the server using a SIGTERM to the
server pid. It doesn't impact the test results.
Issue submitted upstream:
http://code.google.com/p/www-mechanize/issues/detail?id=234
How-To-Repeat: 
cd /usr/ports/www/p5-WWW-Mechanize
make build
cd `make -V WRKSRC`
make test
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-04-07 01:00:37 UTC
Responsible Changed
From-To: freebsd-ports-bugs->perl

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Steve Wills freebsd_committer freebsd_triage 2012-04-07 19:36:42 UTC
Responsible Changed
From-To: perl->swills

I'll take it.
Comment 3 Steve Wills freebsd_committer freebsd_triage 2012-04-12 04:17:40 UTC
State Changed
From-To: open->closed

Committed. Thanks!
Comment 4 dfilter service freebsd_committer freebsd_triage 2012-04-12 04:17:46 UTC
swills      2012-04-12 03:17:32 UTC

  FreeBSD ports repository

  Added files:
    www/p5-WWW-Mechanize/files patch-t__local__LocalServer.pm 
  Log:
  - Fix tests
  
  PR:             ports/166712
  Submitted by:   Mel Flynn <rflynn@acsalaska.net>
  
  Revision  Changes    Path
  1.1       +11 -0     ports/www/p5-WWW-Mechanize/files/patch-t__local__LocalServer.pm (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"