Skip Menu |

This queue is for tickets about the EBook-Tools CPAN distribution.

Report information
The Basics
Id: 51810
Status: resolved
Priority: 0/
Queue: EBook-Tools

People
Owner: AZED [...] cpan.org
Requestors: emmanuel.seyman [...] club-internet.fr
Cc:
AdminCc:

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



Subject: Test suite fails
Date: Sun, 22 Nov 2009 22:43:58 +0100
To: bug-EBook-Tools [...] rt.cpan.org
From: Emmanuel Seyman <emmanuel.seyman [...] club-internet.fr>
The test suite fails on Fedora 12. Strangely enough, I had no problem passing it on Fedora 11. [manu@orient EBook-Tools-0.4.6]$ make test /usr/bin/perl Build --makefile_env_macros 1 test t/00-errorhandling.t ....... ok t/01-init_and_accessors.t .. 1/79 not well-formed (invalid token) at line 24, column 25, byte 1230 at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/XML/Parser.pm line 187 at /home/manu/build/EBook-Tools-0.4.6/blib/lib/EBook/Tools.pm line 672 # Looks like you planned 79 tests but ran 7. # Looks like your test exited with 255 just after 7. t/01-init_and_accessors.t .. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 72/79 subtests t/02-fix_methods.t ......... ok t/10-fix_datestring.t ...... ok t/15-misc_procedures.t ..... ok t/20-unpack.t .............. 1/48 Wide character in print at /usr/lib/perl5/vendor_perl/5.10.0/XML/Twig.pm line 7774. Wide character in print at /usr/lib/perl5/vendor_perl/5.10.0/XML/Twig.pm line 7774. not well-formed (invalid token) at line 13, column 27, byte 689 at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/XML/Parser.pm line 187 at /home/manu/build/EBook-Tools-0.4.6/blib/lib/EBook/Tools.pm line 672 # Looks like you planned 48 tests but ran 43. # Looks like your test exited with 255 just after 43. t/20-unpack.t .............. Dubious, test returned 255 (wstat 65280, 0xff00) Failed 5/48 subtests t/21-mobi_languages.t ...... ok t/25-imp.t ................. 1/84 EBook::Tools::IMP::image(): no image type specified! at t/25-imp.t line 54 EBook::Tools::IMP::image(): ID not specified! at t/25-imp.t line 55 t/25-imp.t ................. ok t/40-lzss.t ................ ok t/50-user_scripts.t ........ 7/18 not well-formed (invalid token) at line 28, column 27, byte 1546 at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/XML/Parser.pm line 187 at ../lib/EBook/Tools.pm line 672 t/50-user_scripts.t ........ 9/18 # Failed test 'ebook genepub exits successfully' # at t/50-user_scripts.t line 75. # got: '255' # expected: '0' # Failed test 'ebook genepub created the epub book' # at t/50-user_scripts.t line 76. not well-formed (invalid token) at line 28, column 27, byte 1546 at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/XML/Parser.pm line 187 at ../lib/EBook/Tools.pm line 672 t/50-user_scripts.t ........ 11/18 # Failed test 'ebook fix -d testdir exits successfully' # at t/50-user_scripts.t line 83. # got: '255' # expected: '0' # Failed test 'ebook fix -d testdir created file in correct place' # at t/50-user_scripts.t line 84. t/50-user_scripts.t ........ 13/18 not well-formed (invalid token) at line 24, column 27, byte 1333 at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/XML/Parser.pm line 187 at /home/manu/build/EBook-Tools-0.4.6/blib/lib/EBook/Tools.pm line 672 # Looks like you planned 18 tests but ran 14. # Looks like you failed 4 tests of 14 run. # Looks like your test exited with 255 just after 14. t/50-user_scripts.t ........ Dubious, test returned 255 (wstat 65280, 0xff00) Failed 8/18 subtests t/98-pod.t ................. ok t/99-pod_coverage.t ........ ok Test Summary Report ------------------- t/01-init_and_accessors.t (Wstat: 65280 Tests: 7 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 79 tests but ran 7. t/20-unpack.t (Wstat: 65280 Tests: 43 Failed: 0) Non-zero exit status: 255 Parse errors: Bad plan. You planned 48 tests but ran 43. t/50-user_scripts.t (Wstat: 65280 Tests: 14 Failed: 4) Failed tests: 9-12 Non-zero exit status: 255 Parse errors: Bad plan. You planned 18 tests but ran 14. Files=12, Tests=410, 17 wallclock secs ( 0.23 usr 0.04 sys + 13.87 cusr 1.57 csys = 15.71 CPU) Result: FAIL Failed 3/12 test programs. 4/410 subtests failed. make: *** [test] Erreur 255
On Sun Nov 22 16:44:23 2009, emmanuel.seyman@club-internet.fr wrote: Show quoted text
> > The test suite fails on Fedora 12. Strangely enough, I had no problem > passing it on Fedora 11.
At first glance, it looks like XML::Parser is failing to recognize a UTF-8 character somewhere. After running a make test, could you please run a 'prove t -v' and attach the output from that so I can get a better idea of exactly which input it isn't liking? Also, what version of XML::Parser do you have installed? Thanks.
Subject: Re: [rt.cpan.org #51810] Test suite fails
Date: Wed, 25 Nov 2009 01:24:27 +0100
To: Zed Pobre via RT <bug-EBook-Tools [...] rt.cpan.org>
From: Emmanuel Seyman <emmanuel.seyman [...] club-internet.fr>
* Zed Pobre via RT [23/11/2009 16:31] : Show quoted text
> > At first glance, it looks like XML::Parser is failing to recognize a > UTF-8 character somewhere. After running a make test, could you please > run a 'prove t -v' and attach the output from that so I can get a better > idea of exactly which input it isn't liking?
Attached. Looks like the problem is t/emptyuid.opf . Running the following lines : use XML::Parser; my $p1 = new XML::Parser(Style => 'Debug'); $p1->parsefile('t/emptyuid.opf'); gives me an output of which the last lines are: package metadata dc-metadata dc:Language || en-us package metadata dc-metadata // package metadata dc-metadata || #10; package metadata dc-metadata || package metadata dc-metadata \\ () package metadata dc-metadata dc:Rights || Copyright not well-formed (invalid token) at line 28, column 27, byte 1546 at /usr/lib64/perl5/vendor_perl/5.10.0/x86_64-linux-thread-multi/XML/Parser.pm line 187 Show quoted text
> Also, what version of XML::Parser do you have installed?
XML-Parser-2.36

Message body is not shown because sender requested not to inline it.

This should be fixed as of 0.5.0 (but that has a different bug which I just fixed, so wait for 0.5.1 to be indexed).