Subject: | t/resty-server.t fail/hang |
Date: | Tue, 6 Oct 2009 22:23:42 +0200 |
To: | bug-Prophet [...] rt.cpan.org |
From: | Florian Ragwitz <rafl [...] debian.org> |
Running t/resty-server.t on commit b688d91 results in a couple of
failing tests as well as the test hanging. Here's the output of the
test:
t/resty-server.t ......................... 2/26
# Failed test 'start up my web server'
# at t/resty-server.t line 31.
# HTTP::Server::Simple->background failed: Can't use an undefined value
# as a HASH reference at
# /home/rafl/projects/perl/Prophet/blib/lib/Prophet/App.pm line 193,
# <DATA> line 16.
Use of uninitialized value $url_root in join or string at
t/resty-server.t line 34, <DATA> line 16.
Use of uninitialized value $url_root in join or string at
t/resty-server.t line 34, <DATA> line 16.
# Failed test 'GET /records.json'
# at t/resty-server.t line 37.
# 400
# URL must be absolute
# Failed test at t/resty-server.t line 38.
# got: '400 URL must be absolute
# '
# expected: '[]'
t/resty-server.t ......................... 5/26 Use of uninitialized
value $url_root in join or string at t/resty-server.t line 34.
# Failed test 'GET /records.json'
# at t/resty-server.t line 44.
# 400
# URL must be absolute
# Failed test at t/resty-server.t line 45.
# got: '400 URL must be absolute
# '
# expected: '["Cars"]'
Use of uninitialized value $url_root in join or string at
t/resty-server.t line 34.
# Failed test 'GET
# /records/Cars/809be052-3825-423c-b606-4336ce4e2bd5.json'
# at t/resty-server.t line 47.
# 400
# URL must be absolute
garbage after JSON object, at character offset 4 (before "URL must be
absolute...") at /home/rafl/.perl/lib/site_perl/5.10.1/JSON.pm
line 154.
^Cmake: *** [test_dynamic] Interrupt
It appears to hang, with 100% cpu utilisation. Here's the
Module::Versions::Report:
Perl v5.10.1 under linux
Modules in memory:
Any::Moose v0.10;
attributes v0.09;
AutoLoader v5.70;
B v1.22;
B::AV;
B::BINOP;
B::BM;
B::COP;
B::CV;
B::FM;
B::GV;
B::HV;
B::IO;
B::IV;
B::LISTOP;
B::LOGOP;
B::LOOP;
B::NULL;
B::NV;
B::OP;
B::PADOP;
B::PMOP;
B::PV;
B::PVIV;
B::PVLV;
B::PVMG;
B::PVNV;
B::PVOP;
B::REGEXP;
B::RV;
B::SPECIAL;
B::SV;
B::SVOP;
B::UNOP;
base v2.14;
blib v1.04;
bytes v1.03;
Carp v1.11;
Carp::Assert v0.20;
Carp::Assert::More v1.12;
CGI v3.48;
CGI::Util v3.48;
Class::Accessor v0.34;
Class::Accessor::Fast v0.34;
Class::Accessor::Lvalue v0.11;
Class::Data::Inheritable v0.08;
Class::Inspector v1.24;
Class::ISA v0.36;
common::sense v2.01;
Compress::Raw::Zlib v2.021;
Compress::Zlib v2.021;
Config;
Config::GitLike v1.02;
constant v1.19;
Cwd v3.3;
Data::Dumper v2.125;
Data::OptList v0.104;
DBD::_::db;
DBD::_::dr;
DBD::_::st;
DBD::_mem::db;
DBD::_mem::dr;
DBD::_mem::st;
DBD::Switch::db;
DBD::Switch::db_mem;
DBD::Switch::dr;
DBD::Switch::dr_mem;
DBD::Switch::st;
DBD::Switch::st_mem;
DBI v1.609;
DBI::db;
DBI::dr;
DBI::st;
Devel::InnerPackage v0.3;
Digest::base v1.16;
Digest::MD5 v2.39;
Digest::SHA v5.47;
DynaLoader v1.10;
Encode v2.37;
Encode::Alias v2.12;
Encode::Config v2.05;
Encode::Encoding v2.05;
Encode::Internal;
Encode::utf8;
Encode::UTF_EBCDIC;
Errno v1.11;
EVERY;
EVERY::LAST;
Exporter v5.63;
Exporter::Heavy v5.63;
Exporter::Lite v0.02;
Fcntl v1.06;
File::Basename v2.77;
File::Find v1.14;
File::Glob v1.06;
File::GlobMapper v1.000;
File::Path v2.08;
File::ShareDir v1.00;
File::Spec v3.3;
File::Spec::Functions v3.3;
File::Spec::Unix v3.3;
File::Temp v0.22;
FileHandle v2.02;
HTML::Entities v3.60;
HTML::Form v5.829;
HTML::Form::FileInput;
HTML::Form::IgnoreInput;
HTML::Form::ImageInput;
HTML::Form::KeygenInput;
HTML::Form::ListInput;
HTML::Form::SubmitInput;
HTML::Form::TextInput;
HTML::Parser v3.62;
HTML::PullParser v3.57;
HTML::Tagset v3.20;
HTML::TokeParser v3.57;
HTTP::Config v5.815;
HTTP::Cookies v5.832;
HTTP::Cookies::Netscape v5.832;
HTTP::Date v5.831;
HTTP::Headers v5.827;
HTTP::Headers::Util v5.817;
HTTP::Message v5.832;
HTTP::Request v5.827;
HTTP::Request::Common v5.824;
HTTP::Request::SUPER;
HTTP::Response v5.824;
HTTP::Response::SUPER;
HTTP::Server::Simple v0.41;
HTTP::Server::Simple::CGI v0.41;
HTTP::Server::Simple::CGI::Environment v0.41;
HTTP::Status v5.817;
if v0.05;
integer v1.00;
IO v1.25;
IO::Compress::Adapter::Deflate v2.021;
IO::Compress::Base v2.021;
IO::Compress::Base::Common v2.021;
IO::Compress::Gzip v2.021;
IO::Compress::Gzip::Constants v2.021;
IO::Compress::RawDeflate v2.021;
IO::Compress::Zlib::Extra v2.021;
IO::File v1.14;
IO::Handle v1.28;
IO::Seekable v1.1;
IO::Uncompress::Adapter::Inflate v2.021;
IO::Uncompress::Base v2.021;
IO::Uncompress::Gunzip v2.021;
IO::Uncompress::RawInflate v2.021;
JSON v2.15;
JSON::Backend::XS::Supportable;
JSON::XS v2.25;
JSON::XS::Boolean;
List::Util v1.21;
LWP v5.832;
LWP::ConnCache v5.810;
LWP::Protocol v5.829;
LWP::UserAgent v5.832;
Memoize v1.01_03;
MIME::Base64 v3.08;
MIME::Base64::URLSafe v0.01;
Module::Pluggable v3.9;
Module::Pluggable::Object v3.9;
Module::Versions::Report v1.06;
Mouse v0.37;
Mouse::Meta::Class;
Mouse::Meta::Role;
Mouse::Object;
Mouse::Role;
Mouse::Util;
Mouse::Util::TypeConstraints;
mro v1.01;
Net::DBus v0.33.6;
Net::DBus::Annotation;
Net::DBus::Binding::Bus;
Net::DBus::Binding::Bus::SUPER;
Net::DBus::Binding::Connection v-1, set by base.pm;
Net::DBus::Binding::Message v-1, set by base.pm;
Net::DBus::Binding::Message::Error;
Net::DBus::Binding::Message::MethodCall;
Net::DBus::Binding::Message::MethodCall::SUPER;
Net::DBus::Binding::Message::MethodReturn;
Net::DBus::Binding::Message::Signal;
Net::Rendezvous::Publish v0.04;
Net::Rendezvous::Publish::Backend::Avahi v0.03;
Net::Rendezvous::Publish::Service;
Net::Rendezvous::Publish::SUPER;
NEXT v0.64;
NEXT::ACTUAL;
NEXT::ACTUAL::DISTINCT;
NEXT::ACTUAL::UNSEEN;
NEXT::DISTINCT;
NEXT::DISTINCT::ACTUAL;
NEXT::UNSEEN;
NEXT::UNSEEN::ACTUAL;
overload v1.07;
Params::Util v1.00;
Params::Validate v0.92;
Path::Dispatcher v0.13;
Path::Dispatcher::Builder;
Path::Dispatcher::Declarative;
Path::Dispatcher::Dispatch;
Path::Dispatcher::Match;
Path::Dispatcher::Path;
Path::Dispatcher::Rule;
Path::Dispatcher::Rule::Always;
Path::Dispatcher::Rule::Chain;
Path::Dispatcher::Rule::CodeRef;
Path::Dispatcher::Rule::Dispatch;
Path::Dispatcher::Rule::Empty;
Path::Dispatcher::Rule::Eq;
Path::Dispatcher::Rule::Intersection;
Path::Dispatcher::Rule::Metadata;
Path::Dispatcher::Rule::Regex;
Path::Dispatcher::Rule::Tokens;
Path::Dispatcher::Rule::Under;
POSIX v1.17;
POSIX::SigRt;
Prophet v0.73;
Prophet::App;
Prophet::Change;
Prophet::ChangeSet;
Prophet::CLI;
Prophet::CLI::Command;
Prophet::CLI::Dispatcher;
Prophet::CLIContext;
Prophet::Config;
Prophet::Config::SUPER;
Prophet::ContentAddressedStore;
Prophet::DatabaseSetting;
Prophet::FilesystemReplica;
Prophet::Meta::Types;
Prophet::PropChange;
Prophet::Record;
Prophet::Replica;
Prophet::Replica::file;
Prophet::Replica::file::SUPER;
Prophet::Replica::FS::Backend::File;
Prophet::Replica::prophet;
Prophet::Replica::prophet::SUPER;
Prophet::Replica::sqlite;
Prophet::Server v-1, set by base.pm;
Prophet::Server::Controller;
Prophet::Server::Dispatcher;
Prophet::Server::View;
Prophet::Server::ViewHelpers;
Prophet::Server::ViewHelpers::Function;
Prophet::Server::ViewHelpers::HiddenParam;
Prophet::Server::ViewHelpers::ParamFromFunction;
Prophet::Server::ViewHelpers::Widget;
Prophet::Test;
Prophet::TestServer;
Prophet::UUIDGenerator;
Prophet::Web::Field;
Prophet::Web::FunctionResult;
Prophet::Web::Menu;
Prophet::Web::Result;
re v0.09;
Scalar::Util v1.21;
SelectSaver v1.02;
Socket v1.82;
Storable v2.21;
strict v1.04;
String::BufferStack v1.14;
Sub::Exporter v0.982;
Sub::Install v0.925;
Sub::Name v0.04;
Symbol v1.07;
Template::Declare v0.40;
Template::Declare::Tags v0.27;
Template::Declare::TagSet v-1, set by base.pm;
Template::Declare::TagSet::HTML;
Test::Builder v0.94;
Test::Builder::Module v0.94;
Test::HTTP::Server::Simple v0.10;
Test::LongString v0.11;
Test::More v0.94;
Test::WWW::Mechanize v1.24;
Test::WWW::Mechanize::SUPER;
Text::ParseWords v3.27;
Tie::Hash v1.03;
Time::HiRes v1.9719;
Time::Local v1.1901;
UNIVERSAL v1.05;
URI v1.40;
URI::_generic;
URI::Escape v3.29;
utf8 v1.07;
UUID::Tiny v1.02;
vars v1.01;
Want v0.18;
warnings v1.06;
warnings::register v1.01;
WWW::Mechanize v1.60;
WWW::Mechanize::SUPER;
XML::Parser v2.36;
XML::Parser::Expat v2.36;
XML::Parser::ExpatNB;
XML::Twig v3.32;
XML::Twig::SUPER;
XSLoader v0.10;
Zlib::OldDeflate;
Zlib::OldInflate;
[at Tue Oct 6 22:05:28 2009 (local) / Tue Oct 6 20:05:28 2009 (GMT)]
--
BOFH excuse #56:
Electricians made popcorn in the power supply
Message body not shown because it is not plain text.