Subject: | fails test 04 on FBSD |
It tests against 'localhost' but I presume the underlying Mechanize is
returning the hostname.
I've replaced the hostname it returns with "myhost.com" because it's not
my hostname to divulge.
Full output:
CPAN.pm: Going to build J/JE/JESSE/HTTP-Server-Simple-0.40.tar.gz
Checking if your kit is complete...
Looks good
Writing Makefile for HTTP::Server::Simple
cp lib/HTTP/Server/Simple/CGI/Environment.pm
blib/lib/HTTP/Server/Simple/CGI/Environment.pm
cp lib/HTTP/Server/Simple.pm blib/lib/HTTP/Server/Simple.pm
cp lib/HTTP/Server/Simple/CGI.pm blib/lib/HTTP/Server/Simple/CGI.pm
Manifying blib/man3/HTTP::Server::Simple::CGI::Environment.3
Manifying blib/man3/HTTP::Server::Simple.3
Manifying blib/man3/HTTP::Server::Simple::CGI.3
JESSE/HTTP-Server-Simple-0.40.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/00signature.t .... ok
t/00smoke.t ........ ok
t/01live.t ......... 7/14 # started server PID='18763'
t/01live.t ......... ok
t/02pod.t .......... ok
t/03podcoverage.t .. skipped: Test::Pod::Coverage 1.04 required for
testing POD coverage
t/04cgi.t .......... 2/22
# Failed test 'method - url'
# at t/04cgi.t line 45.
# 'HTTP/1.0 200 OK
# Content-Type: text/html
# Content-Length: 39
#
# url: http://myhost.com:45700'
# doesn't match '/url: http://localhost:45700/'
t/04cgi.t .......... 7/22
# Failed test 'method - server_name'
# at t/04cgi.t line 45.
# 'HTTP/1.0 200 OK
# Content-Type: text/html
# Content-Length: 34
#
# server_name: myhost.com'
# doesn't match '/server_name: localhost/'
# Failed test 'Environment - SERVER_NAME'
# at t/04cgi.t line 54.
# 'HTTP/1.0 200 OK
# Content-Type: text/html
# Content-Length: 34
#
# SERVER_NAME: myhost.com'
# doesn't match '/SERVER_NAME: localhost/'
# Failed test 'Environment - REMOTE_ADDR'
# at t/04cgi.t line 54.
# 'HTTP/1.0 200 OK
# Content-Type: text/html
# Content-Length: 27
#
# REMOTE_ADDR: 208.79.212.117'
# doesn't match '/REMOTE_ADDR: 127.0.0.1/'
t/04cgi.t .......... 17/22
# Failed test 'Environment - SERVER_URL'
# at t/04cgi.t line 54.
# 'HTTP/1.0 200 OK
# Content-Type: text/html
# Content-Length: 47
#
# SERVER_URL: http://myhost.com:45700/'
# doesn't match '/SERVER_URL: http://localhost:45700//'
# Looks like you failed 5 tests of 22.
t/04cgi.t .......... Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/22 subtests
Test Summary Report
-------------------
t/04cgi.t (Wstat: 1280 Tests: 22 Failed: 5)
Failed tests: 6, 9-11, 18
Non-zero exit status: 5
Files=6, Tests=48, 11 wallclock secs ( 0.18 usr 0.07 sys + 1.71 cusr
0.16 csys = 2.12 CPU)
Result: FAIL
Failed 1/6 test programs. 5/48 subtests failed.
*** Error code 5