sdondley / Dancer2-Plugin-Menu

0 stars 3 forks source link

Failed test 'no warnings' (if WWW::Form::UrlEncoded::XS and ::PP do not match) #2

Open eserte opened 6 years ago

eserte commented 6 years ago

On some of my smokers the test suite fails:


#   Failed test 'no warnings'
#   at /usr/perl5.18.4p/lib/site_perl/5.18.4/Test/Builder.pm line 152.
# There were 1 warning(s)
#   Previous test 0 ''
#   WWW::Form::UrlEncoded::XS 0.25 is require. fallback to PP version at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 17.
#  at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 17.
#   eval {...} called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 14
#   WWW::Form::UrlEncoded::BEGIN() called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 34
#   eval {...} called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 34
#   require WWW/Form/UrlEncoded.pm called at /usr/perl5.18.4p/lib/site_perl/5.18.4/HTTP/Entity/Parser/UrlEncoded.pm line 5
#   HTTP::Entity::Parser::UrlEncoded::BEGIN() called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 34
#   eval {...} called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 34
#   require HTTP/Entity/Parser/UrlEncoded.pm called at /usr/perl5.18.4p/lib/site_perl/5.18.4/Module/Load.pm line 77
#   eval {...} called at /usr/perl5.18.4p/lib/site_perl/5.18.4/Module/Load.pm line 77
#   Module::Load::_load("HTTP::Entity::Parser::UrlEncoded") called at /usr/perl5.18.4p/lib/site_perl/5.18.4/HTTP/Entity/Parser.pm line 21
#   require HTTP/Entity/Parser.pm called at /usr/perl5.18.4p/lib/site_perl/5.18.4/Plack/Request.pm line 17
#   Plack::Request::BEGIN() called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 34
#   eval {...} called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 34
#   require Plack/Request.pm called at /usr/perl5.18.4p/lib/site_perl/5.18.4/parent.pm line 16
#   parent::import("parent", "Plack::Request") called at /usr/perl5.18.4p/lib/site_perl/5.18.4/Dancer2/Core/Request.pm line 6
#   Dancer2::Core::Request::BEGIN() called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 34
#   eval {...} called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 34
#   require Dancer2/Core/Request.pm called at /usr/perl5.18.4p/lib/site_perl/5.18.4/Dancer2/Core/App.pm line 29
#   Dancer2::Core::App::BEGIN() called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 34
#   eval {...} called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 34
#   require Dancer2/Core/App.pm called at /usr/perl5.18.4p/lib/site_perl/5.18.4/Dancer2.pm line 11
#   Dancer2::BEGIN() called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 34
#   eval {...} called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 34
#   require Dancer2.pm called at t/01-basic.t line 19
#   MyApp::BEGIN() called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 34
#   eval {...} called at /usr/perl5.18.4p/lib/site_perl/5.18.4/amd64-freebsd/WWW/Form/UrlEncoded.pm line 34
# 
# Looks like you failed 1 test of 1.
t/01-basic.t ... 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/1 subtests 

See also https://github.com/kazeburo/WWW-Form-UrlEncoded/issues/3

sdondley commented 6 years ago

OK, thanks. Yeah, I gotta get some code in place to better handle warnings. Will work on it.