Bug#722512: FTBFS: test unconditionally uses port 8080

gregor herrmann gregoa at debian.org
Mon Sep 23 17:07:45 UTC 2013


On Wed, 11 Sep 2013 23:04:51 +0100, Michael Tautschnig wrote:

> #   Failed test 'created test server'
> #   at t/001-basic.t line 7.
> # HTTP::Server::Simple->background failed: bind to *:8080: Address already in use at /usr/share/perl/5.14/NEXT.pm line 92
> Use of uninitialized value $url in concatenation (.) or string at t/001-basic.t line 8, <DATA> line 16.

So that's an interesting bug (or interesting bugs actually).

The error message is output by Test::HTTP::Server::Simple, and
actually error is from HTTP::Server::Simple (which uses port 8080 by
default unless told otherwise).
 
> It would be great if the test at least tried a couple of different port numbers
> instead of failing when a fairly popular port number was in use.

Agreed.

I'm just not sure where to start here; in the tests of the modules
that use Test::HTTP::Server::Simple -- sems inefficient; in
Test::HTTP::Server::Simple -- sounds better but this module seems to
rely on an already setup (by the calling test) HTTP::Server::Simple;
or in HTTP::Server::Simple -- but this seems wrong) ...


Cheers,
gregor

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Kings of Convenience: Boat Behind
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20130923/0a3e10be/attachment-0001.sig>


More information about the pkg-perl-maintainers mailing list