Subject: | small test-breakage of gethostnamebyaddr of 'localhost' |
module: HTTP-Server-Simple-0.09
perl -V
Summary of my perl5 (revision 5 version 8 subversion 6) configuration:
Platform:
osname=freebsd, osvers=4.8-release, archname=i386-freebsd
uname='freebsd narus2.caida.org 4.8-release freebsd 4.8-release #0: thu apr 3 10:53:38 gmt 2003 root@freebsd-stable.sentex.ca:usrobjusrsrcsysgeneric i386 '
OS: FreeBSD 4.8-RELEASE FreeBSD 4.8-RELEASE #0
t/04cgi.t fails on my system, but module seems to work fine.
t/04cgi.t assumes '127.0.0.1' will be translated into 'localhost' or 'localhost.localdomain' it tests for this with lines like:
SERVER_URL => 'SERVER_URL: http://localhost(?:\.localdomain)?:'.PORT.'/',
But on the system I use 127.0.0.1 is translated into localhost.example.com, which is valid. so I think the regexp that t/04cgi.t should test against is:
SERVER_URL: http://localhost(?:[\.\w]+)?:'.PORT.'/',
diff:
# diff t/04cgi.t t/04cgi.t.orig
8c8
< url => 'url: http://localhost(?:[\.\w]+)?:'.PORT,
---
Show quoted text
> url => 'url: http://localhost(?:\.localdomain)?:'.PORT,
18c18
< SERVER_URL => 'SERVER_URL: http://localhost(?:[\.\w]+)?:'.PORT.'/',
---
Show quoted text> SERVER_URL => 'SERVER_URL: http://localhost(?:\.localdomain)?:'.PORT.'/',
emile