Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests fail -- empty base class package #122

Open
martinthurn-LFT opened this issue May 9, 2016 · 1 comment
Open

tests fail -- empty base class package #122

martinthurn-LFT opened this issue May 9, 2016 · 1 comment

Comments

@martinthurn-LFT
Copy link

martinthurn-LFT commented May 9, 2016

$ ./Build test
t/00_compile.t ........... ok   
t/chunked_req.t .......... Use of uninitialized value $v in concatenation (.) or string at /usr/local/share/perl5/HTTP/Server/PSGI.pm line 204.
t/chunked_req.t .......... 1/? 
#   Failed test at t/chunked_req.t line 41.
#          got: undef
#     expected: '14750'

#   Failed test at t/chunked_req.t line 42.
#          got: 'dcd7fa202fe055ad32dcadf47d13b449'
#     expected: '70546a79c7abb9c497ca91730a0686e4'
# Looks like you failed 2 tests of 2.
t/chunked_req.t .......... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests 
t/chunked_termination.t .. Base class package "Net::Server::PreFork" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: /home/centos/.cpanplus/5.10.1/build/Starman-0.4014/blib/arch /home/centos/.cpanplus/5.10.1/build/Starman-0.4014/blib/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
 at /home/centos/.cpanplus/5.10.1/build/Starman-0.4014/blib/lib/Starman/Server.pm line 3.
BEGIN failed--compilation aborted at /home/centos/.cpanplus/5.10.1/build/Starman-0.4014/blib/lib/Starman/Server.pm line 3.
Compilation failed in require at t/chunked_termination.t line 25.
BEGIN failed--compilation aborted at t/chunked_termination.t line 25.
t/chunked_termination.t .. Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run 
t/chunked_zero_length.t .. ok   
t/harakiri.t ............. 1/? 
#   Failed test 'In Harakiri mode, each pid only used once'
#   at t/harakiri.t line 39.
#          got: '3'
#     expected: '23'
# Looks like you failed 1 test of 2.
t/harakiri.t ............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests 
t/lf_only_request.t ...... ok   
t/no_chunked_head.t ...... Use of uninitialized value $str in substitution (s///) at /usr/local/share/perl5/HTTP/Response.pm line 27.
Use of uninitialized value $status_line in pattern match (m//) at /usr/local/share/perl5/HTTP/Response.pm line 37.
Use of uninitialized value $status_line in split at /usr/local/share/perl5/HTTP/Response.pm line 41.
t/no_chunked_head.t ...... ok   
t/release-findbin.t ...... skipped: these tests are for release candidate testing
t/release-pod-syntax.t ... skipped: these tests are for release candidate testing
t/release-rand.t ......... skipped: these tests are for release candidate testing
t/ssl.t .................. skipped: Test requires module 'LWP::Protocol::https' but it's not found
t/ssl_largebody.t ........ skipped: Test requires module 'LWP::Protocol::https' but it's not found
t/suite.t ................ Base class package "Net::Server::PreFork" is empty.
    (Perhaps you need to 'use' the module which defines that package first,
    or make that module available in @INC (@INC contains: /home/centos/.cpanplus/5.10.1/build/Starman-0.4014/blib/arch /home/centos/.cpanplus/5.10.1/build/Starman-0.4014/blib/lib /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .).
 at /home/centos/.cpanplus/5.10.1/build/Starman-0.4014/blib/lib/Starman/Server.pm line 3.
BEGIN failed--compilation aborted at /home/centos/.cpanplus/5.10.1/build/Starman-0.4014/blib/lib/Starman/Server.pm line 3.
Compilation failed in require at /home/centos/.cpanplus/5.10.1/build/Starman-0.4014/blib/lib/Plack/Handler/Starman.pm line 3.
BEGIN failed--compilation aborted at /home/centos/.cpanplus/5.10.1/build/Starman-0.4014/blib/lib/Plack/Handler/Starman.pm line 3.
Compilation failed in require at /usr/local/share/perl5/Plack/Util.pm line 26.
cannot open port: 127.0.0.1:50322 at /usr/local/share/perl5/Test/TCP.pm line 53.
t/suite.t ................ Dubious, test returned 111 (wstat 28416, 0x6f00)
No subtests run 

Test Summary Report
-------------------
t/chunked_req.t        (Wstat: 512 Tests: 2 Failed: 2)
  Failed tests:  1-2
  Non-zero exit status: 2
t/chunked_termination.t (Wstat: 65280 Tests: 0 Failed: 0)
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
t/harakiri.t           (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/suite.t              (Wstat: 28416 Tests: 0 Failed: 0)
  Non-zero exit status: 111
  Parse errors: No plan found in TAP output
Files=13, Tests=8, 19 wallclock secs ( 0.08 usr  0.04 sys +  1.36 cusr  0.25 csys =  1.73 CPU)
Result: FAIL
@fheyer
Copy link

fheyer commented Sep 27, 2016

I have the same tests failing. However i'm pretty sure the reason lies in Plack::Test or it might be related to issue #119 as we get the same warning "Missing port in hashref passed in port argument".

I have tried the build on Mac OS and on Linux using perlbrew.

change:Starman-0.4014 heyho$ ./Build test
t/00_compile.t ........... ok
t/chunked_req.t .......... 2016/09/27-15:56:44 Starman::Server (type Net::Server::PreFork) starting! pid(97653)
Missing port in hashref passed in port argument.
t/chunked_req.t .......... 1/?
#   Failed test at t/chunked_req.t line 41.
#
#          got: undef
#     expected: '14750'
#

#   Failed test at t/chunked_req.t line 42.
#
#          got: '9c640435acd3609310b8e7c2c72eb1f1'
#     expected: '70546a79c7abb9c497ca91730a0686e4'
#
# Looks like you failed 2 tests of 2.
t/chunked_req.t .......... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
t/chunked_termination.t .. ok
t/chunked_zero_length.t .. 2016/09/27-15:57:44 Starman::Server (type Net::Server::PreFork) starting! pid(97657)
Missing port in hashref passed in port argument.
t/chunked_zero_length.t .. 1/?
#   Failed test at t/chunked_zero_length.t line 27.
#          got: 'Timed out while waiting for socket to become ready for reading
# '
#     expected: 'ContentAgain'
# Looks like you failed 1 test of 1.
t/chunked_zero_length.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/harakiri.t ............. 2016/09/27-15:58:44 Starman::Server (type Net::Server::PreFork) starting! pid(97661)
Missing port in hashref passed in port argument.
t/harakiri.t ............. 1/? 2016/09/27-16:11:40 Starman::Server (type Net::Server::PreFork) starting! pid(97763)
Missing port in hashref passed in port argument.
t/harakiri.t ............. 2/?
#   Failed test 'In Harakiri mode, each pid only used once'
#   at t/harakiri.t line 39.
#          got: '2'
#     expected: '23'
# Looks like you failed 1 test of 2.
t/harakiri.t ............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
t/lf_only_request.t ...... 2016/09/27-16:24:48 Starman::Server (type Net::Server::PreFork) starting! pid(97837)
Missing port in hashref passed in port argument.
t/lf_only_request.t ...... 1/?
#   Failed test at t/lf_only_request.t line 42.
#          got: '599'
#     expected: '200'
# Looks like you failed 1 test of 1.
t/lf_only_request.t ...... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests
t/no_chunked_head.t ...... 2016/09/27-16:25:48 Starman::Server (type Net::Server::PreFork) starting! pid(97851)
Binding to TCP port 50001 on host 127.0.0.1 with IPv4
Setting gid to "20 20 20 9 12 61 79 80 81 98 33 100 204 398 399"
t/no_chunked_head.t ...... 1/? 2016/09/27-16:25:48 Server closing!
t/no_chunked_head.t ...... ok
t/release-findbin.t ...... skipped: these tests are for release candidate testing
t/release-pod-syntax.t ... skipped: these tests are for release candidate testing
t/release-rand.t ......... skipped: these tests are for release candidate testing
t/ssl.t .................. 2016/09/27-16:25:49 Starman::Server (type Net::Server::PreFork) starting! pid(97861)
Resolved [localhost]:50532 to [127.0.0.1]:50532, IPv4
Binding to SSL port 50532 on host 127.0.0.1 with IPv4
Setting gid to "20 20 20 9 12 61 79 80 81 98 33 100 204 398 399"
Could not finalize SSL connection with client handle (SSL accept attempt failed because of handshake problems)
2016/09/27-16:25:49 Server closing!
t/ssl.t .................. ok
t/ssl_largebody.t ........ 2016/09/27-16:25:49 Starman::Server (type Net::Server::PreFork) starting! pid(97869)
Resolved [localhost]:51308 to [127.0.0.1]:51308, IPv4
Binding to SSL port 51308 on host 127.0.0.1 with IPv4
Setting gid to "20 20 20 9 12 61 79 80 81 98 33 100 204 398 399"
Could not finalize SSL connection with client handle (SSL accept attempt failed because of handshake problems)
2016/09/27-16:25:49 Server closing!
t/ssl_largebody.t ........ ok
t/suite.t ................ 2016/09/27-16:25:49 Starman::Server (type Net::Server::PreFork) starting! pid(97877)
Binding to TCP port 50993 on host 127.0.0.1 with IPv4
Setting gid to "20 20 20 9 12 61 79 80 81 98 33 100 204 398 399"
t/suite.t ................ 1/? 2016/09/27-16:25:50 Server closing!
t/suite.t ................ ok

Test Summary Report
-------------------
t/chunked_req.t        (Wstat: 512 Tests: 2 Failed: 2)
  Failed tests:  1-2
  Non-zero exit status: 2
t/chunked_zero_length.t (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
t/harakiri.t           (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/lf_only_request.t    (Wstat: 256 Tests: 1 Failed: 1)
  Failed test:  1
  Non-zero exit status: 1
Files=13, Tests=115, 1747 wallclock secs ( 0.09 usr  0.04 sys +  2.43 cusr  0.59 csys =  3.15 CPU)
Result: FAIL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants