It only does loopback stuff, but test 04cgi.t eats dirt: t/04cgi.t .... 2/62 # Failed test '[GET] no file' # at t/04cgi.t line 64. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/NOFILE/' # Failed test '[POST] no file' # at t/04cgi.t line 64. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/NOFILE/' t/04cgi.t .... 5/62 # Failed test '[HEAD] no file' # at t/04cgi.t line 64. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/NOFILE/' # Failed test '[PUT] no file' # at t/04cgi.t line 64. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/NOFILE/' # Failed test '[DELETE] no file' # at t/04cgi.t line 64. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/NOFILE/' # Failed test '[PATCH] no file' # at t/04cgi.t line 64. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/NOFILE/' # Failed test '[OPTIONS] no file' # at t/04cgi.t line 64. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/NOFILE/' t/04cgi.t .... 10/62 # Failed test 'method - request_method' # at t/04cgi.t line 70. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/request_method: GET/' # Failed test 'method - url' # at t/04cgi.t line 70. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/url: http://:45893/' # Failed test 'method - server_software' # at t/04cgi.t line 70. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/server_software: HTTP::Server::Simple/\d+.\d+/' # Failed test 'method - server_port' # at t/04cgi.t line 70. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/server_port: 45893/' # Failed test 'method - path_info' # at t/04cgi.t line 70. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/path_info: /cgitest/path_info/' t/04cgi.t .... 15/62 # Failed test 'method - server_name' # at t/04cgi.t line 70. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/server_name: /' # Failed test 'Environment - SERVER_SOFTWARE' # at t/04cgi.t line 79. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_SOFTWARE: HTTP::Server::Simple/\d+.\d+/' # Failed test 'Environment - PATH_INFO' # at t/04cgi.t line 79. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/PATH_INFO: /cgitest/PATH_INFO/' # Failed test 'Environment - SERVER_PORT' # at t/04cgi.t line 79. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_PORT: 45893/' # Failed test 'Environment - SERVER_PROTOCOL' # at t/04cgi.t line 79. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_PROTOCOL: HTTP/1.1/' t/04cgi.t .... 20/62 # Failed test 'Environment - SERVER_NAME' # at t/04cgi.t line 79. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_NAME: /' # Failed test 'Environment - QUERY_STRING' # at t/04cgi.t line 79. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/QUERY_STRING: /' # Failed test 'Environment - SERVER_URL' # at t/04cgi.t line 79. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_URL: http://:45893//' # Failed test 'Environment - REMOTE_ADDR' # at t/04cgi.t line 79. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/REMOTE_ADDR: 127.0.0.1/' # Failed test 'Environment - REQUEST_METHOD' # at t/04cgi.t line 79. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/REQUEST_METHOD: GET/' t/04cgi.t .... 25/62 # Failed test 'Environment - REQUEST_URI' # at t/04cgi.t line 79. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/REQUEST_URI: /cgitest/REQUEST_URI/' # Failed test 'method (absolute URL) - request_method' # at t/04cgi.t line 96. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/request_method: GET/' # Failed test 'method (absolute URL) - url' # at t/04cgi.t line 96. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/url: http://:45893/' # Failed test 'method (absolute URL) - server_software' # at t/04cgi.t line 96. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/server_software: HTTP::Server::Simple/\d+.\d+/' # Failed test 'method (absolute URL) - server_port' # at t/04cgi.t line 96. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/server_port: 45893/' t/04cgi.t .... 30/62 # Failed test 'method (absolute URL) - path_info' # at t/04cgi.t line 96. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/path_info: /cgitest/path_info/' # Failed test 'method (absolute URL) - server_name' # at t/04cgi.t line 96. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/server_name: /' # Failed test 'Environment (absolute URL) - SERVER_SOFTWARE' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_SOFTWARE: HTTP::Server::Simple/\d+.\d+/' # Failed test 'Environment (absolute URL) - PATH_INFO' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/PATH_INFO: /cgitest/PATH_INFO/' # Failed test 'Environment (absolute URL) - SERVER_PORT' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_PORT: 45893/' t/04cgi.t .... 35/62 # Failed test 'Environment (absolute URL) - SERVER_PROTOCOL' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_PROTOCOL: HTTP/1.1/' # Failed test 'Environment (absolute URL) - SERVER_NAME' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_NAME: /' # Failed test 'Environment (absolute URL) - QUERY_STRING' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/QUERY_STRING: /' # Failed test 'Environment (absolute URL) - SERVER_URL' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_URL: http://:45893//' # Failed test 'Environment (absolute URL) - REMOTE_ADDR' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/REMOTE_ADDR: 127.0.0.1/' t/04cgi.t .... 40/62 # Failed test 'Environment (absolute URL) - REQUEST_METHOD' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/REQUEST_METHOD: GET/' # Failed test 'Environment (absolute URL) - REQUEST_URI' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/REQUEST_URI: /cgitest/REQUEST_URI/' # Failed test 'method (absolute URL) - request_method' # at t/04cgi.t line 96. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/request_method: HEAD/' # Failed test 'method (absolute URL) - url' # at t/04cgi.t line 96. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/url: http://:45893/' # Failed test 'method (absolute URL) - server_software' # at t/04cgi.t line 96. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/server_software: HTTP::Server::Simple/\d+.\d+/' t/04cgi.t .... 45/62 # Failed test 'method (absolute URL) - server_port' # at t/04cgi.t line 96. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/server_port: 45893/' # Failed test 'method (absolute URL) - path_info' # at t/04cgi.t line 96. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/path_info: /cgitest/path_info/' # Failed test 'method (absolute URL) - server_name' # at t/04cgi.t line 96. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/server_name: /' # Failed test 'Environment (absolute URL) - SERVER_SOFTWARE' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_SOFTWARE: HTTP::Server::Simple/\d+.\d+/' # Failed test 'Environment (absolute URL) - PATH_INFO' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/PATH_INFO: /cgitest/PATH_INFO/' t/04cgi.t .... 50/62 # Failed test 'Environment (absolute URL) - SERVER_PORT' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_PORT: 45893/' # Failed test 'Environment (absolute URL) - SERVER_PROTOCOL' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_PROTOCOL: HTTP/1.1/' # Failed test 'Environment (absolute URL) - SERVER_NAME' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_NAME: /' # Failed test 'Environment (absolute URL) - QUERY_STRING' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/QUERY_STRING: /' # Failed test 'Environment (absolute URL) - SERVER_URL' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/SERVER_URL: http://:45893//' t/04cgi.t .... 55/62 # Failed test 'Environment (absolute URL) - REMOTE_ADDR' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/REMOTE_ADDR: 127.0.0.1/' # Failed test 'Environment (absolute URL) - REQUEST_METHOD' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/REQUEST_METHOD: HEAD/' # Failed test 'Environment (absolute URL) - REQUEST_URI' # at t/04cgi.t line 108. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '/REQUEST_URI: /cgitest/REQUEST_URI/' # Failed test 'Didn't decode already' # at t/04cgi.t line 118. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '(?^:foo%3Fbar)' # Failed test 'Did decode already' # at t/04cgi.t line 123. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '(?^:foo/bar)' # Failed test 'uses HTTP_COOKIE' # at t/04cgi.t line 129. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '(?^:foo=bar)' # Failed test 'combines multiple cookies into HTTP_COOKIE' # at t/04cgi.t line 135. # '[ERROR] inet_aton: Resource temporarily unavailable at t/04cgi.t line 158, <DATA> line 16. # ' # doesn't match '(?^:foo=bar[;,] baz=qux)' # Looks like you failed 59 tests of 62. t/04cgi.t .... Dubious, test returned 59 (wstat 15104, 0x3b00) Failed 59/62 subtests Test Summary Report ------------------- t/04cgi.t (Wstat: 15104 Tests: 62 Failed: 59) Failed tests: 3-61 Non-zero exit status: 59
Ok, it turns out this issue is also made worse by nsswitch.conf If you don't have "myhostname" in "hosts:" "localhost" requires network access (dns) to resolve if its not hardcoded in etc/hosts ... or something like that.
(In reply to Kent Fredric (IRC: kent\n) (RETIRED) from comment #1) > Ok, it turns out this issue is also made worse by nsswitch.conf > > If you don't have "myhostname" in "hosts:" "localhost" requires network > access (dns) to resolve if its not hardcoded in etc/hosts ... or something > like that. Not having localhost in /etc/hosts is a configuration error. (Tests pass fine here.)