#722512#5
Date:
2013-09-11 22:04:51 UTC
From:
To:
When building the package in a clean chroot using pbuilder, but on a system
running services, the build of libtest-http-server-simple-stashwarnings-perl
failed:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t

#   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.

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.

Best,
Michael

#722512#10
Date:
2013-09-23 17:07:45 UTC
From:
To:
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).

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