Skip to content

Instantly share code, notes, and snippets.

@clkao
Created January 30, 2010 14:57
Show Gist options
  • Save clkao/290582 to your computer and use it in GitHub Desktop.
Save clkao/290582 to your computer and use it in GitHub Desktop.
[clkao@mtl-2:Plack clkao (master)]$ prove -lv t/Plack-Handler/fcgi_client.t
t/Plack-Handler/fcgi_client.t ..
# GET
ok 1
ok 2
ok 3
# POST
ok 4
ok 5
ok 6
ok 7
ok 8
# psgi.url_scheme
ok 9
ok 10
ok 11
# return glob
ok 12
ok 13
ok 14
ok 15
# filehandle
ok 16
ok 17
ok 18
# bigger file
Use of uninitialized value $stdout in pattern match (m//) at /Users/clkao/git/Plack/lib/Plack/App/FCGIDispatcher.pm line 46, <$input> line 1.
Use of uninitialized value $stdout in concatenation (.) or string at /Users/clkao/git/Plack/lib/Plack/App/FCGIDispatcher.pm line 47, <$input> line 1.
Can't call method "print" on an undefined value at /Users/clkao/git/Plack/lib/Plack/Util.pm line 124, <$input> line 1.
not ok 19
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500'
# expected: '200'
not ok 20
not ok 21
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: 'text/plain'
# expected: 'image/jpeg'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '59'
# expected: '2397701'
not ok 22
# handle HTTP-Header
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: 'fd97123afe03d3d62c025b95691635a0'
# expected: '9c6d7249a77204a88be72e9b2fe279e8'
SIGPIPE received
not ok 23
ok 24
not ok 25
# handle HTTP-Cookie
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500'
# expected: '200'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: 'Bar'
not ok 26
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500'
# expected: '200'
ok 27
not ok 28
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: 'foo'
# validate env
not ok 29
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500'
# expected: '200'
ok 30
not ok 31
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: 'REQUEST_METHOD:GET
# PATH_INFO:/foo/
# QUERY_STRING:dankogai=kogaidan
# SERVER_NAME:127.0.0.1
# SERVER_PORT:10001
# '
# % encoding in PATH_INFO
not ok 32 - PATH_INFO should be decoded per RFC 3875
# % double encoding in PATH_INFO
not ok 33 - PATH_INFO should be decoded only once, per RFC 3875
# SERVER_PROTOCOL is required
not ok 34
ok 35
not ok 36
# SCRIPT_NAME should not be undef
# Failed test 'PATH_INFO should be decoded per RFC 3875'
# at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: '/foo/bar,baz'
# Failed test 'PATH_INFO should be decoded only once, per RFC 3875'
# at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: '/foo/bar%2cbaz'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500'
# expected: '200'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 1028.
# '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# doesn't match '(?-xism:^HTTP/1\.[01]$)'
not ok 37
# call close after read file-like
not ok 38
# has errors
not ok 39
# status line
not ok 40
# Do not crash when the app dies
ok 41
# multi headers
not ok 42
# no entity headers on 304
not ok 43
not ok 44
not ok 45 - No Content-Type
ok 46 - No Content-Length
ok 47 - No Transfer-Encoding
# REQUEST_URI is set
not ok 48
# filehandle with path()
not ok 49
not ok 50
not ok 51
# a big header value > 128 bytes
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: '1'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: '1234'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: '1'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)'
# expected: '200 OK'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: 'bar, baz'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500'
# expected: '304'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: ''
# Failed test 'No Content-Type'
# at /Users/clkao/git/Plack/lib/Plack/Test/Suite.pm line 380.
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: '/foo/bar%20baz%73?x=a'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500'
# expected: '200'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: 'text/plain'
# expected: 'image/jpeg'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '67'
# expected: '4745'
not ok 52
not ok 53
# coderef res
not ok 54
ok 55
not ok 56
# coderef streaming
not ok 57
ok 58
not ok 59
# CRLF output and FCGI parse bug
ok 60
not ok 61
1..61
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500'
# expected: '200'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: 'abcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefghabcdefgh'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500'
# expected: '200'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: 'Hello, name=miyagawa'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500'
# expected: '200'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: 'Hello, name=miyagawa'
# Failed test at /Users/clkao/perl5.10/lib/5.10.1/Test/Builder.pm line 893.
# got: '500 Can't connect to 127.0.0.1:10001 (connect: Connection refused)
# '
# expected: 'Foo: Bar
#
# Hello World'
# Looks like you failed 33 tests of 61.
Dubious, test returned 33 (wstat 8448, 0x2100)
Failed 33/61 subtests
Test Summary Report
-------------------
t/Plack-Handler/fcgi_client.t (Wstat: 8448 Tests: 61 Failed: 33)
Failed tests: 19-23, 25-26, 28-29, 31-34, 36-40, 42-45
48-54, 56-57, 59, 61
Non-zero exit status: 33
Files=1, Tests=61, 13 wallclock secs ( 0.06 usr 0.02 sys + 0.57 cusr 0.14 csys = 0.79 CPU)
Result: FAIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment