Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Dancer CPAN distribution.

Report information
The Basics
Id: 50271
Status: resolved
Priority: 0/
Queue: Dancer

People
Owner: Nobody in particular
Requestors: david [...] axiombox.com
Cc:
AdminCc:

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



Subject: perl 5.8.9 doesn't pass test 03_route_handler/07_compilation_warning.t
Date: Tue, 6 Oct 2009 18:47:50 -0400
To: bug-Dancer [...] rt.cpan.org
From: David Moreno <david [...] axiombox.com>
Please see below: /tmp/Dancer-0.9905 $ /opt/perl/5.8.9/bin/perl5.8.9 Makefile.PL Writing Makefile for Dancer /tmp/Dancer-0.9905 $ make cp lib/Dancer/Response.pm blib/lib/Dancer/Response.pm cp lib/Dancer/GetOpt.pm blib/lib/Dancer/GetOpt.pm cp lib/Dancer/Helpers.pm blib/lib/Dancer/Helpers.pm cp lib/Dancer/HTTP.pm blib/lib/Dancer/HTTP.pm cp lib/Dancer/SharedData.pm blib/lib/Dancer/SharedData.pm cp lib/Dancer/Route.pm blib/lib/Dancer/Route.pm cp lib/Dancer.pm blib/lib/Dancer.pm cp lib/Dancer/Renderer.pm blib/lib/Dancer/Renderer.pm cp lib/Dancer/Request.pm blib/lib/Dancer/Request.pm cp lib/Dancer/Handler/Standalone.pm blib/lib/Dancer/Handler/ Standalone.pm cp lib/Dancer/Error.pm blib/lib/Dancer/Error.pm cp lib/Dancer/Handler.pm blib/lib/Dancer/Handler.pm cp lib/Dancer/Logger.pm blib/lib/Dancer/Logger.pm cp lib/Dancer/FileUtils.pm blib/lib/Dancer/FileUtils.pm cp lib/Dancer/Handler/PSGI.pm blib/lib/Dancer/Handler/PSGI.pm cp lib/Dancer/Config.pm blib/lib/Dancer/Config.pm cp lib/Dancer/Logger/File.pm blib/lib/Dancer/Logger/File.pm cp script/dancer blib/script/dancer /opt/perl/5.8.9/bin/perl5.8.9 "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/dancer Manifying blib/man1/dancer.1 Manifying blib/man3/Dancer::HTTP.3 Manifying blib/man3/Dancer.3 Manifying blib/man3/Dancer::Config.3 /tmp/Dancer-0.9905 $ make test PERL_DL_NONLAZY=1 /opt/perl/5.8.9/bin/perl5.8.9 "- MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/ arch')" t/00_base/001_load.t t/00_base/002_strict_and_warnings.t t/ 00_base/003_syntax.t t/00_base/004_args.t t/01_config/01_settings.t t/ 01_config/02_mime_type.t t/01_config/03_logger.t t/01_config/ 04_config_file.t t/02_http_request/001_basic_request.t t/ 02_http_request/002_head_request.t t/03_route_handler/ 00_http_methods.t t/03_route_handler/01_params.t t/03_route_handler/ 02_before_filter.t t/03_route_handler/03_passing.t t/03_route_handler/ 04_wildcards.t t/03_route_handler/05_error_catching.t t/ 03_route_handler/06_regexp.t t/03_route_handler/ 07_compilation_warning.t t/03_route_handler/08_errors.t t/ 04_static_file/001_base.t t/04_static_file/002_mime_types.t t/05_views/ 001_settings.t t/05_views/002_view_rendering.t t/05_views/03_layout.t t/06_helpers/01_send_file.t t/06_helpers/02_http_status.t t/06_helpers/ 03_content_type.t t/06_helpers/04_status.t t/07_apphandlers/01_base.t t/07_apphandlers/02_apache2_plack.t t/00_base/001_load...........................ok t/00_base/002_strict_and_warnings............ok t/00_base/003_syntax.........................ok t/00_base/004_args...........................ok t/01_config/01_settings......................ok t/01_config/02_mime_type.....................ok t/01_config/03_logger........................ok t/01_config/04_config_file...................ok 1/18Configuration file found but YAML is not installed at /private/tmp/Dancer-0.9905/blib/lib/ Dancer/Config.pm line 67 Dancer::Config::load('Dancer::Config') called at t/01_config/ 04_config_file.t line 41 # Looks like you planned 18 tests but only ran 4. # Looks like your test died just after 4. t/01_config/04_config_file...................dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 5-18 Failed 14/18 tests, 22.22% okay t/02_http_request/001_basic_request..........skipped all skipped: LWP is needed t/02_http_request/002_head_request...........skipped all skipped: LWP is needed to test HTTP requests t/03_route_handler/00_http_methods...........ok t/03_route_handler/01_params.................ok t/03_route_handler/02_before_filter..........ok t/03_route_handler/03_passing................ok t/03_route_handler/04_wildcards..............ok t/03_route_handler/05_error_catching.........ok t/03_route_handler/06_regexp.................ok t/03_route_handler/07_compilation_warning.... # Failed test 'response looks good for /warning' # at t/03_route_handler/07_compilation_warning.t line 36. # '1' # doesn't match '(?-xism:Compilation warning: Argument "hello" isn't numeric in addition)' # Looks like you failed 1 test of 1. t/03_route_handler/07_compilation_warning....dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 1 Failed 1/1 tests, 0.00% okay t/03_route_handler/08_errors.................ok t/04_static_file/001_base....................ok 1/6WARNING: You don't seem to have a mime-info database. The shared-mime-info package is available from http://freedesktop.org/ . t/04_static_file/001_base....................ok t/04_static_file/002_mime_types..............ok 1/9WARNING: You don't seem to have a mime-info database. The shared-mime-info package is available from http://freedesktop.org/ . t/04_static_file/002_mime_types..............ok t/05_views/001_settings......................ok t/05_views/002_view_rendering................ok t/05_views/03_layout.........................ok t/06_helpers/01_send_file....................ok 1/5WARNING: You don't seem to have a mime-info database. The shared-mime-info package is available from http://freedesktop.org/ . t/06_helpers/01_send_file....................ok t/06_helpers/02_http_status..................ok t/06_helpers/03_content_type.................ok t/06_helpers/04_status.......................ok t/07_apphandlers/01_base.....................ok t/07_apphandlers/02_apache2_plack............ok Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/01_config/04_config_file.t 255 65280 18 28 5-18 t/03_route_handler/07_compilation_warning 1 256 1 1 1 2 tests skipped. Failed 2/30 test scripts. 15/215 subtests failed. Files=30, Tests=215, 3 wallclock secs ( 2.32 cusr + 0.41 csys = 2.73 CPU) Failed 2/30 test programs. 15/215 subtests failed. make: *** [test_dynamic] Error 255 /tmp/Dancer-0.9905 $ Tested using Dancer 0.9905, perl 5.8.9 on MacOS. David twitter.com/damog
Thanks for the report. It looks like Perl interpreters don't behave the same about runtime/compilation-time warnings. I'll have to make that test less strict I suppose. BTW, I see that the YAML module is not checked in all the config tests. I have to skip those if it's not installed.
this should be fixed with last version (1.110). Please feel free to open that bug report again if it's not OK with last version.