Skip to content

Error in http/cgi.test #1639

@gopherbot

Description

@gopherbot

by royger:

What steps will reproduce the problem?

Update to latest release or tip (31d7feb9281b), run ./all.bash

What is the expected output?

Install process finishes correctly

What do you see instead?

make -C http/cgi test
gotest
rm -f _test/http/cgi.a
6g -o _gotest_.6 child.go host.go  child_test.go host_test.go matryoshka_test.go
rm -f _test/http/cgi.a
gopack grc _test/http/cgi.a _gotest_.6 
--- FAIL: cgi.TestCGIBasicGet (0.0 seconds)
        Unexpected 1 parts from invalid line number 20: "\n"; existing map=map[env-__CF_USER_TEXT_ENCODING:0x1F5:0:86 env-PATH_INFO: env-REQUEST_URI:/test.cgi?foo=bar&a=b env-QUERY_STRING:foo=bar&a=b env-SERVER_SOFTWARE:go env-REMOTE_HOST:1.2.3.4 param-foo:bar env-HTTP_HOST:example.com env-SCRIPT_NAME:/test.cgi test:Hello CGI param-a:b env-REMOTE_ADDR:1.2.3.4 env-VERSIONER_PERL_VERSION:5.10.0 env-VERSIONER_PERL_PREFER_32_BIT:no env-GATEWAY_INTERFACE:CGI/1.1 env-SERVER_PORT:80 env-SERVER_NAME:example.com env-SCRIPT_FILENAME:testdata/test.cgi env-REQUEST_METHOD:GET]
--- FAIL: cgi.TestCGIBasicGetAbsPath (0.1 seconds)
        Unexpected 1 parts from invalid line number 20: "\n"; existing map=map[env-__CF_USER_TEXT_ENCODING:0x1F5:0:86 env-PATH_INFO: env-REQUEST_URI:/test.cgi?foo=bar&a=b env-QUERY_STRING:foo=bar&a=b env-SERVER_SOFTWARE:go env-REMOTE_HOST:1.2.3.4 param-foo:bar env-HTTP_HOST:example.com env-SCRIPT_NAME:/test.cgi test:Hello CGI param-a:b env-REMOTE_ADDR:1.2.3.4 env-VERSIONER_PERL_VERSION:5.10.0 env-VERSIONER_PERL_PREFER_32_BIT:no env-GATEWAY_INTERFACE:CGI/1.1 env-SERVER_PORT:80 env-SERVER_NAME:example.com env-SCRIPT_FILENAME:/Users/royger/go/src/pkg/http/cgi/testdata/test.cgi env-REQUEST_METHOD:GET]
--- FAIL: cgi.TestPathInfo (0.1 seconds)
        Unexpected 1 parts from invalid line number 19: "\n"; existing map=map[env-__CF_USER_TEXT_ENCODING:0x1F5:0:86 env-PATH_INFO:/extrapath env-REQUEST_URI:/test.cgi/extrapath?a=b env-QUERY_STRING:a=b env-SERVER_SOFTWARE:go env-REMOTE_HOST:1.2.3.4 env-HTTP_HOST:example.com env-SCRIPT_NAME:/test.cgi test:Hello CGI param-a:b env-REMOTE_ADDR:1.2.3.4 env-VERSIONER_PERL_VERSION:5.10.0 env-VERSIONER_PERL_PREFER_32_BIT:no env-GATEWAY_INTERFACE:CGI/1.1 env-SERVER_PORT:80 env-SERVER_NAME:example.com env-SCRIPT_FILENAME:testdata/test.cgi env-REQUEST_METHOD:GET]
--- FAIL: cgi.TestPathInfoDirRoot (0.1 seconds)
        Unexpected 1 parts from invalid line number 19: "\n"; existing map=map[env-__CF_USER_TEXT_ENCODING:0x1F5:0:86 env-PATH_INFO:bar env-REQUEST_URI:/myscript/bar?a=b env-QUERY_STRING:a=b env-SERVER_SOFTWARE:go env-REMOTE_HOST:1.2.3.4 env-HTTP_HOST:example.com env-SCRIPT_NAME:/myscript/ test:Hello CGI param-a:b env-REMOTE_ADDR:1.2.3.4 env-VERSIONER_PERL_VERSION:5.10.0 env-VERSIONER_PERL_PREFER_32_BIT:no env-GATEWAY_INTERFACE:CGI/1.1 env-SERVER_PORT:80 env-SERVER_NAME:example.com env-SCRIPT_FILENAME:testdata/test.cgi env-REQUEST_METHOD:GET]
--- FAIL: cgi.TestDupHeaders (0.1 seconds)
        Unexpected 1 parts from invalid line number 21: "\n"; existing map=map[env-__CF_USER_TEXT_ENCODING:0x1F5:0:86 env-PATH_INFO:/myscript/bar env-REQUEST_URI:/myscript/bar?a=b env-QUERY_STRING:a=b env-SERVER_SOFTWARE:go env-REMOTE_HOST:1.2.3.4 env-HTTP_HOST:example.com env-SCRIPT_NAME:/ env-HTTP_X_FOO:val1, val2 test:Hello CGI env-HTTP_COOKIE:nom=NOM; yum=YUM param-a:b env-REMOTE_ADDR:1.2.3.4 env-VERSIONER_PERL_VERSION:5.10.0 env-VERSIONER_PERL_PREFER_32_BIT:no env-GATEWAY_INTERFACE:CGI/1.1 env-SERVER_PORT:80 env-SERVER_NAME:example.com env-SCRIPT_FILENAME:testdata/test.cgi env-REQUEST_METHOD:GET]
--- FAIL: cgi.TestPathInfoNoRoot (0.1 seconds)
        Unexpected 1 parts from invalid line number 19: "\n"; existing map=map[env-__CF_USER_TEXT_ENCODING:0x1F5:0:86 env-PATH_INFO:/bar env-REQUEST_URI:/bar?a=b env-QUERY_STRING:a=b env-SERVER_SOFTWARE:go env-REMOTE_HOST:1.2.3.4 env-HTTP_HOST:example.com env-SCRIPT_NAME:/ test:Hello CGI param-a:b env-REMOTE_ADDR:1.2.3.4 env-VERSIONER_PERL_VERSION:5.10.0 env-VERSIONER_PERL_PREFER_32_BIT:no env-GATEWAY_INTERFACE:CGI/1.1 env-SERVER_PORT:80 env-SERVER_NAME:example.com env-SCRIPT_FILENAME:testdata/test.cgi env-REQUEST_METHOD:GET]
--- FAIL: cgi.TestCGIBasicPost (0.1 seconds)
        Unexpected 1 parts from invalid line number 23: "\n"; existing map=map[param-postfoo:postbar env-CONTENT_TYPE:application/x-www-form-urlencoded env-__CF_USER_TEXT_ENCODING:0x1F5:0:86 env-PATH_INFO: env-REQUEST_URI:/test.cgi?a=b env-QUERY_STRING:a=b env-SERVER_SOFTWARE:go env-CONTENT_LENGTH:15 env-REMOTE_HOST:1.2.3.4 env-HTTP_HOST:example.com env-SCRIPT_NAME:/test.cgi test:Hello CGI env-HTTP_CONTENT_LENGTH:15 env-REMOTE_ADDR:1.2.3.4 env-VERSIONER_PERL_VERSION:5.10.0 env-VERSIONER_PERL_PREFER_32_BIT:no env-GATEWAY_INTERFACE:CGI/1.1 env-SERVER_PORT:80 env-SERVER_NAME:example.com env-SCRIPT_FILENAME:testdata/test.cgi env-HTTP_CONTENT_TYPE:application/x-www-form-urlencoded env-REQUEST_METHOD:POST]
FAIL
make[1]: *** [test] Error 1
make: *** [http/cgi.test] Error 2

Which operating system are you using?

Mac OS X 10.6.7, gcc version 4.2.1 (Apple Inc. build 5666) (dot 3), perl v5.10.0 built
for darwin-thread-multi-2level (bundled in current Mac OS X release).

GOARCH=amd64
GOOS=darwin

Which revision are you using?  (hg identify)

31d7feb9281b tip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions