Skip Menu |

This queue is for tickets about the XML-Twig CPAN distribution.

Report information
The Basics
Id: 11844
Status: resolved
Priority: 0/
Queue: XML-Twig

People
Owner: MIROD [...] cpan.org
Requestors: sn [...] heise.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.16
Fixed in: 3.17



Subject: Test failure on Solaris 8/Sparc
During installation: t/test_safe_encode..................output_filter => 'safe': expected: '<doc><&#233;l&#233;ment att&#233;="&#233;t&#233;">&#233;t&#233;</&#233;l&#233;ment></doc>' got : '<doc><&#233;l&#233;ment att&#195;&#169;="&#233;t&#233;">&#233;t&#233;</&#233;l&#233;ment></doc>' output_filter => 'safe_hex': expected: '<doc><&#xe9;l&#xe9;ment att&#xe9;="&#xe9;t&#xe9;">&#xe9;t&#xe9;</&#xe9;l&#xe9;ment></doc>' got : '<doc><&#xe9;l&#xe9;ment att&#xc3;&#xa9;="&#xe9;t&#xe9;">&#xe9;t&#xe9;</&#xe9;l&#xe9;ment></doc>' t/test_safe_encode..................FAILED tests 1-2 Failed 2/4 tests, 50.00% okay Configuration: perl: 5.006001 OS: solaris - sun4-solaris XML::Parser : 2.34 expat : 1.95.5 Scalar::Util : 1.13 Encode : <not available> Text::Iconv : <not available> Unicode::Map8 : <not available> LWP : 5.63 HTML::Entities : 1.22 Tie::IxHash : <not available> XML::XPath : <not available> Test : 1.15 Test::Pod : <not available> XML::Simple : <not available> XML::Handler::YAWriter : <not available> XML::SAX::Writer : <not available> XML::Filter::BufferText : <not available> IO::Scalar : 2.105
Subject: Test failure on Solaris 8/Sparc (test_safe_encode)
From: sn [...] heise.de
I noticed another problem before the "test_safe_encode": t/test_bugs_3.15....................Unsupported encoding: utf8 at t/test_bugs_3.15.t line 30 t/test_bugs_3.15....................dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 3-17 Failed 15/17 tests, 11.76% okay
From: sn [...] heise.de
The errors also occur with this configuration (more modules installed): Configuration: perl: 5.006001 OS: solaris - sun4-solaris XML::Parser : 2.34 expat : 1.95.5 Scalar::Util : 1.13 Encode : <not available> Text::Iconv : 1.4 LWP : 5.63 HTML::Entities : 1.22 Tie::IxHash : <not available> XML::XPath : 1.13 Test : 1.15 Test::Pod : 1.20 XML::Simple : <not available> XML::Handler::YAWriter : <not available> XML::SAX::Writer : <not available> XML::Filter::BufferText : <not available> IO::Scalar : 2.105
Thanks, I was able to reproduce the bug (and that will teach me to test on Solaris before releasing the module). The " Unsupported encoding: utf8" comes up because iconv does not support conversions to UTF-8 on Solaris (at least by default), which the test spots (there was a previous bug report on that). I'll check test_safe_encode.t this week-end. It is a new test in version 3.16, so the bug was probably always there. __ Mirod
Subject: More test failures - on Linux, too
From: sn [...] heise.de
Hi, I'm seeing the same(?) bug on Linux now: make test echo "building Twig.pm" building Twig.pm /usr/bin/perl speedup Twig.pm.slow > Twig.pm perl version is 5.006001 XML::Parser version is 2.30 /usr/bin/perl check_optional_modules weaken is available Text::Iconv is installed Skip blib/lib/XML/Twig.pm (unchanged) Skip blib/lib/XML/Twig/XPath.pm (unchanged) PERL_DL_NONLAZY=1 /usr/bin/perl -Iblib/arch -Iblib/lib -I/usr/lib/perl/5.6.1 -I/usr/share/perl/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/is_field..........ok t/pod...............skipping, Test::Pod required t/pod...............ok t/test1.............ok t/test2.............ok t/test3.............ok t/test4.............ok t/test5.............ok t/test_additional...ok 290/647need perl 5.8 or above to perform these tests (you have 5.006001): skipping 3 tests t/test_additional...ok 358/647require XML::Handler::YAWriter: skipping 3 tests t/test_additional...ok 361/647XML::SAX::Writer not available: skipping 5 tests t/test_additional...ok t/test_attregexp_cond.ok t/test_bugs_3.15....ok 6/17entities in atts with do_not_escape_amp_in_atts: expected: '<doc att="M&uuml;nchen"><elt att="&ent2;"/><elt att="A&amp;E">&ent3;</elt></doc>' got : '<doc att="Mnchen"><elt att=""/><elt att="A&amp;E">&ent3;</elt></doc>' t/test_bugs_3.15....FAILED test 7 Failed 1/17 tests, 94.12% okay t/test_cdata........ok t/test_class_methods.ok t/test_comment_handler.ok t/test_drop_comments.ok t/test_entities.....ok t/test_erase........ok t/test_errors.......ok t/test_expand_external_entities.ok t/test_ignore_elts..ok t/test_mark.........ok t/test_nav..........ok t/test_need_io_scalar.ok t/test_need_use_bytes.ok t/test_new_features_3.15.ok t/test_pi_handler...ok t/test_pos..........ok t/test_safe_encode..output_filter => 'safe': expected: '<doc><&#233;l&#233;ment att&#233;="&#233;t&#233;">&#233;t&#233;</&#233;l&#233;ment></doc>' got : '<doc><&#233;l&#233;ment att&#195;&#169;="&#233;t&#233;">&#233;t&#233;</&#233;l&#233;ment></doc>' output_filter => 'safe_hex': expected: '<doc><&#xe9;l&#xe9;ment att&#xe9;="&#xe9;t&#xe9;">&#xe9;t&#xe9;</&#xe9;l&#xe9;ment></doc>' got : '<doc><&#xe9;l&#xe9;ment att&#xc3;&#xa9;="&#xe9;t&#xe9;">&#xe9;t&#xe9;</&#xe9;l&#xe9;ment></doc>' t/test_safe_encode..FAILED tests 1-2 Failed 2/4 tests, 50.00% okay t/test_simplify.....skipping: YAML is not installed t/test_simplify.....ok t/test_spaces.......ok t/test_twig_roots...ok t/test_unique_xpath.ok t/test_variables....ok t/test_with_lwp.....ok 3/13 ### warning is normal here ### file:test_with_lwp_no_file.xml File `test_with_lwp_no_file.xml' does not exist at t/test_with_lwp.t line 40 t/test_with_lwp.....ok t/test_xpath_cond...ok t/xmlxpath_01basic..skipping: XML::XPath not available t/xmlxpath_01basic..ok t/xmlxpath_02descendant.skipping: XML::XPath not available t/xmlxpath_02descendant.ok t/xmlxpath_03star...skipping: XML::XPath not available t/xmlxpath_03star...ok t/xmlxpath_04pos....skipping: XML::XPath not available t/xmlxpath_04pos....ok t/xmlxpath_05attrib.skipping: XML::XPath not available t/xmlxpath_05attrib.ok t/xmlxpath_06attrib_val.skipping: XML::XPath not available t/xmlxpath_06attrib_val.ok t/xmlxpath_07count..skipping: XML::XPath not available t/xmlxpath_07count..ok t/xmlxpath_08name...skipping: XML::XPath not available t/xmlxpath_08name...ok t/xmlxpath_09a_string_length.skipping: XML::XPath not available t/xmlxpath_09a_string_length.ok t/xmlxpath_09string_length.skipping: XML::XPath not available t/xmlxpath_09string_length.ok t/xmlxpath_10pipe...skipping: XML::XPath not available t/xmlxpath_10pipe...ok t/xmlxpath_12axisdescendant.skipping: XML::XPath not available t/xmlxpath_12axisdescendant.ok t/xmlxpath_13axisparent.skipping: XML::XPath not available t/xmlxpath_13axisparent.ok t/xmlxpath_14axisancestor.skipping: XML::XPath not available t/xmlxpath_14axisancestor.ok t/xmlxpath_15axisfol_sib.skipping: XML::XPath not available t/xmlxpath_15axisfol_sib.ok t/xmlxpath_16axisprec_sib.skipping: XML::XPath not available t/xmlxpath_16axisprec_sib.ok t/xmlxpath_17axisfollowing.skipping: XML::XPath not available t/xmlxpath_17axisfollowing.ok t/xmlxpath_18axispreceding.skipping: XML::XPath not available t/xmlxpath_18axispreceding.ok t/xmlxpath_19axisd_or_s.skipping: XML::XPath not available t/xmlxpath_19axisd_or_s.ok t/xmlxpath_20axisa_or_s.skipping: XML::XPath not available t/xmlxpath_20axisa_or_s.ok t/xmlxpath_21allnodes.skipping: XML::XPath not available t/xmlxpath_21allnodes.ok t/xmlxpath_22name_select.skipping: XML::XPath not available t/xmlxpath_22name_select.ok t/xmlxpath_23func...skipping: XML::XPath not available t/xmlxpath_23func...ok t/xmlxpath_24namespaces.skipping: XML::XPath not available t/xmlxpath_24namespaces.ok t/xmlxpath_25scope..skipping: XML::XPath not available t/xmlxpath_25scope..ok t/xmlxpath_26predicate.skipping: XML::XPath not available t/xmlxpath_26predicate.ok t/xmlxpath_28ancestor2.skipping: XML::XPath not available t/xmlxpath_28ancestor2.ok t/xmlxpath_29desc_with_predicate.skipping: XML::XPath not available t/xmlxpath_29desc_with_predicate.ok t/xmlxpath_30lang...skipping: XML::XPath not available t/xmlxpath_30lang...ok t/xmlxpath_additional.skipping: XML::XPath not available t/xmlxpath_additional.ok t/xmlxpath_nav......skipping: XML::XPath not available t/xmlxpath_nav......ok t/xmlxpath_test1....skipping: XML::XPath not available t/xmlxpath_test1....ok t/xmlxpath_test_twig_roots.skipping: XML::XPath not available t/xmlxpath_test_twig_roots.ok t/xmlxpath_test_with_handlers.skipping: XML::XPath not available t/xmlxpath_test_with_handlers.ok t/xmlxpath_xpath_cond.skipping: XML::XPath not available t/xmlxpath_xpath_cond.ok t/zz_dump_config.... Configuration: perl: 5.006001 OS: linux - i686-linux XML::Parser : 2.30 Can't exec "xmlwf": No such file or directory at t/zz_dump_config.t line 16. Use of uninitialized value in pattern match (m//) at t/zz_dump_config.t line 17. expat : <no version information found> Scalar::Util : 1.13 Encode : <not available> Text::Iconv : 1.2 LWP : 5.64 HTML::Entities : 1.22 Tie::IxHash : 1.21 XML::XPath : <not available> Test : 1.15 Test::Pod : <not available> XML::Simple : 2.09 XML::Handler::YAWriter : <not available> XML::SAX::Writer : <not available> XML::Filter::BufferText : <not available> IO::Scalar : 2.104 Please add this information to bug reports (you can run t/zz_dump_config.t to get it) t/zz_dump_config....ok Failed Test Status Wstat Total Fail Failed List of Failed -------------------------------------------------------------------------------- t/test_bugs_3.15.t 17 1 5.88% 7 t/test_safe_encode.t 4 2 50.00% 1-2 Failed 2/70 test scripts, 97.14% okay. 3/1387 subtests failed, 99.78% okay. make: *** [test_dynamic] Error 29
[guest - Fri Mar 11 10:46:19 2005]: Show quoted text
> The errors also occur with this configuration (more modules installed): > > Configuration: > > perl: 5.006001
Duh! Of course you can't use utf-8 encoded attributes with perl 5.6.1, which is what I was testing here. So I changed the test, and it should be OK now. The development version at http://www.xmltwig.com/xmltwig/ has an updated version, if it works for you I will release on CPAN. Thanks __ Mirod