Skip Menu |

This queue is for tickets about the Module-CPANTS-Analyse CPAN distribution.

Report information
The Basics
Id: 78311
Status: resolved
Priority: 0/
Queue: Module-CPANTS-Analyse

People
Owner: Nobody in particular
Requestors: jquelin [...] cpan.org
Cc:
AdminCc:

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



Subject: test fails when yaml::any doesn't find yaml::xs nor yaml::syck
in this case, yaml::any reverts to yaml, which fails: $ /usr/bin/make test PERL_DL_NONLAZY=1 /usr/bin/perl5.16.0 "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/00_load.t ................. ok t/02_kwalitee.t ............. ok t/03_plugins.t .............. ok t/05_testdir.t .............. ok t/05_testfile.t ............. ok t/10_analyse.t .............. ok t/analyse_afs.t ............. ok # Failed test 'metayml_is_parsable' # at t/analyse_axkit_xsp_l10n.t line 30. # Failed test 'LICENSE' # at t/analyse_axkit_xsp_l10n.t line 31. # got: ' defined in LICENSE' # expected: 'perl defined in META.yaml defined in LICENSE' # Looks like you failed 2 tests of 14. t/analyse_axkit_xsp_l10n.t .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/14 subtests t/analyse_devel_timer.t ..... ok t/analyse_eg_c.t ............ ok t/analyse_html_tiny.t ....... ok t/analyse_test_yaml_meta.t .. ok t/calc.t .................... ok t/calc_test_yaml_meta.t ..... ok t/generated_files.t ......... ok t/moose_as_strict.t ......... ok t/perl5i_as_strict.t ........ ok t/perl5i_as_warnings.t ...... ok t/plugin_manifest.t ......... ok t/unpack.t .................. ok t/unpack_notextractable.t ... ok Test Summary Report ------------------- t/analyse_axkit_xsp_l10n.t (Wstat: 512 Tests: 14 Failed: 2) Failed tests: 11-12 Non-zero exit status: 2 Files=21, Tests=274, 11 wallclock secs ( 0.11 usr 0.02 sys + 9.44 cusr 0.75 csys = 10.32 CPU) Result: FAIL Failed 1/21 test programs. 2/274 subtests failed. make: *** [test_dynamic] Error 255 exact error is: # 'error' => { # 'metayml_is_parsable' => 'YAML Error: Invalid element in map # Code: YAML_LOAD_ERR_BAD_MAP_ELEMENT # Line: 23 # Document: 1 # at /usr/lib/perl5/vendor_perl/5.16.0/YAML/Loader.pm line 352. # ', # 'valid_signature' => -1 # },
On Wed Jul 11 10:27:29 2012, JQUELIN wrote: Show quoted text
> in this case, yaml::any reverts to yaml, which fails:
META.yml is not valid YAML, so YAML.pm is correct. META.yml has incorrect indentation: no_index: namespace: - AxKit::XSP::L10N::Demo If I add 2 spaces before '-', YAML would be correct. -- Alexandr Ciornii, http://chorny.net
This can be tested by adding @YAML::Any::_TEST_ORDER = ('YAML'); -- Alexandr Ciornii, http://chorny.net
Thanks for the report. This should be fixed as YAML::Any is not used in tests now. Closed as resolved. On Wed Jul 11 23:27:29 2012, JQUELIN wrote: Show quoted text
> in this case, yaml::any reverts to yaml, which fails: > > $ /usr/bin/make test > PERL_DL_NONLAZY=1 /usr/bin/perl5.16.0 "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t > t/00_load.t ................. ok > t/02_kwalitee.t ............. ok > t/03_plugins.t .............. ok > t/05_testdir.t .............. ok > t/05_testfile.t ............. ok > t/10_analyse.t .............. ok > t/analyse_afs.t ............. ok > > # Failed test 'metayml_is_parsable' > # at t/analyse_axkit_xsp_l10n.t line 30. > > # Failed test 'LICENSE' > # at t/analyse_axkit_xsp_l10n.t line 31. > # got: ' defined in LICENSE' > # expected: 'perl defined in META.yaml defined in LICENSE' > # Looks like you failed 2 tests of 14. > t/analyse_axkit_xsp_l10n.t .. > Dubious, test returned 2 (wstat 512, 0x200) > Failed 2/14 subtests > t/analyse_devel_timer.t ..... ok > t/analyse_eg_c.t ............ ok > t/analyse_html_tiny.t ....... ok > t/analyse_test_yaml_meta.t .. ok > t/calc.t .................... ok > t/calc_test_yaml_meta.t ..... ok > t/generated_files.t ......... ok > t/moose_as_strict.t ......... ok > t/perl5i_as_strict.t ........ ok > t/perl5i_as_warnings.t ...... ok > t/plugin_manifest.t ......... ok > t/unpack.t .................. ok > t/unpack_notextractable.t ... ok > > Test Summary Report > ------------------- > t/analyse_axkit_xsp_l10n.t (Wstat: 512 Tests: 14 Failed: 2) > Failed tests: 11-12 > Non-zero exit status: 2 > Files=21, Tests=274, 11 wallclock secs ( 0.11 usr 0.02 sys + 9.44 cusr > 0.75 csys = 10.32 CPU) > Result: FAIL > Failed 1/21 test programs. 2/274 subtests failed. > make: *** [test_dynamic] Error 255 > > exact error is: > # 'error' => { > # 'metayml_is_parsable' => 'YAML Error: Invalid > element in map > # Code: YAML_LOAD_ERR_BAD_MAP_ELEMENT > # Line: 23 > # Document: 1 > # at /usr/lib/perl5/vendor_perl/5.16.0/YAML/Loader.pm line 352. > # ', > # 'valid_signature' => -1 > # },