Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the POEx-Role-PSGIServer CPAN distribution.

Report information
The Basics
Id: 63434
Status: resolved
Priority: 0/
Queue: POEx-Role-PSGIServer

People
Owner: Nobody in particular
Requestors: TJC [...] cpan.org
tobyc [...] strategicdata.com.au
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.102531
Fixed in: (no value)



Subject: suite.t fails tests due to missing listen_port attribute
This module fails to pass its test suite - suite.t fails, apparently due to a missing attribute - listen_port. tobyc@arya:~/.cpanplus/5.12.2/build/POEx-Role-PSGIServer-1.102531$ perl Makefile.PL Writing Makefile for POEx::Role::PSGIServer tobyc@arya:~/.cpanplus/5.12.2/build/POEx-Role-PSGIServer-1.102531$ make Skip blib/lib/POEx/Role/PSGIServer/ProxyWriter.pm (unchanged) Skip blib/lib/POEx/Types/PSGIServer.pm (unchanged) Skip blib/lib/POEx/Role/PSGIServer.pm (unchanged) Skip blib/lib/POEx/Role/PSGIServer/Streamer.pm (unchanged) Manifying blib/man3/POEx::Role::PSGIServer::ProxyWriter.3 Manifying blib/man3/POEx::Types::PSGIServer.3 Manifying blib/man3/POEx::Role::PSGIServer::Streamer.3 Manifying blib/man3/POEx::Role::PSGIServer.3 tobyc@arya:~/.cpanplus/5.12.2/build/POEx-Role-PSGIServer-1.102531$ make test PERL_DL_NONLAZY=1 /home/tobyc/git/modern-perl/system/lucid-amd64.new/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/release-pod-coverage.t .. skipped: these tests are for release candidate testing t/release-pod-syntax.t .... skipped: these tests are for release candidate testing t/streaming.t ............. skipped: Test requires module 'HTTP::Parser::XS' but it's not found t/suite.t ................. Attribute (listen_port) is required at /usr/local/strategic/perl/lib/site_perl/5.12.2/Plack/Loader.pm line 47 Plack::Loader::load('Plack::Loader', '+MyTester', 'port', 10735, 'host', 127.0.0.1) called at /usr/local/strategic/perl/lib/site_perl/5.12.2/Plack/Test/Suite.pm line 651 Plack::Test::Suite::__ANON__(10735, 'CODE(0x43d5ab0)') called at /usr/local/strategic/perl/lib/site_perl/5.12.2/Plack/Test/Suite.pm line 678 Plack::Test::Suite::__ANON__(10735) called at /usr/local/strategic/perl/lib/site_perl/5.12.2/Test/TCP.pm line 79 Test::TCP::test_tcp('client', 'CODE(0x233eaf8)', 'server', 'CODE(0x43c27b8)', 'port', undef) called at /usr/local/strategic/perl/lib/site_perl/5.12.2/Plack/Test/Suite.pm line 680 Plack::Test::Suite::run_server_tests('Plack::Test::Suite', '+MyTester') called at t/suite.t line 9 cannot open port: 10735 at /usr/local/strategic/perl/lib/site_perl/5.12.2/Test/TCP.pm line 112. t/suite.t ................. Dubious, test returned 111 (wstat 28416, 0x6f00) No subtests run Test Summary Report ------------------- t/suite.t (Wstat: 28416 Tests: 0 Failed: 0) Non-zero exit status: 111 Parse errors: No plan found in TAP output Files=4, Tests=0, 11 wallclock secs ( 0.03 usr 0.00 sys + 0.78 cusr 0.04 csys = 0.85 CPU) Result: FAIL Failed 1/4 test programs. 0/0 subtests failed. make: *** [test_dynamic] Error 111 tobyc@arya:~/.cpanplus/5.12.2/build/POEx-Role-PSGIServer-1.102531$
In case it helps: This is perl 5, version 12, subversion 2 (v5.12.2) built for x86_64- linux-thread-multi $Plack::VERSION = 0.9951
Released a new version that depends on the latest POEx::Role::TCPServer, because I tested with older ones and it didn't pass tests there. This might or might not fix your issue. If it doesn't, can you tell me what versions of the other prereqs you have installed? I'm passing the test suite on my machine.
On Mon Nov 29 10:09:38 2010, frodwith wrote: Show quoted text
> Released a new version that depends on the latest > POEx::Role::TCPServer, because I tested with
I'm running the latest POEx::Role::TCPServer, at least as far as I can tell from CPAN just now. Versions as reported by pmvers follow: pmvers Plack 0.9951 pmvers Plack::Test::Suite /usr/bin/pmvers: unknown version for module `Plack::Test::Suite' pmvers HTTP::Message::PSGI /usr/bin/pmvers: unknown version for module `HTTP::Message::PSGI' pmvers HTTP::Request 5.827 pmvers HTTP::Status 5.817 pmvers Moose::Autobox 0.11 pmvers MooseX::Declare 0.34 pmvers MooseX::Types 0.24 pmvers MooseX::Types::Moose 0.24 pmvers MooseX::Types::Structured 0.24 pmvers POE::Filter::HTTP::Parser 1.04 pmvers POE::Filter::Map 1.294 pmvers POE::Filter::Stream 1.294 pmvers POEx::Role::Streaming 1.102610 pmvers POEx::Role::TCPServer 1.102740 pmvers POEx::Types 1.100910 pmvers Plack::Util /usr/bin/pmvers: unknown version for module `Plack::Util'
It turns out this was a problem with Devel::Declare on 5.12 perls. The workaround is to change the indentation style to K&R. Go. Figure.