Skip Menu |

This queue is for tickets about the MIME-tools CPAN distribution.

Report information
The Basics
Id: 66188
Status: resolved
Priority: 0/
Queue: MIME-tools

People
Owner: dfs+pause [...] roaringpenguin.com
Requestors: leefm40 [...] yahoo.co.uk
Cc:
AdminCc:

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



Subject: MIME-Tools Test 17 Fails on Centos 5.5
When using CPAN to instail MIME::Entity (MIME-tools-5.501) , one of the test is failing and preventing a clean install (Centos 5.5, Pert 5.8.8) Linux 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:53:09 EST 2011 i686 i686 i386 GNU/Linux CPAN: Storable loaded ok Going to read /root/.cpan/Metadata Database was generated on Thu, 24 Feb 2011 22:27:33 GMT Running install for module MIME::Entity Running make for D/DS/DSKOLL/MIME-tools-5.501.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for /root/.cpan/sources/authors/id/D/DS/DSKOLL/MIME-tools- 5.501.tar.gz ok Scanning cache /root/.cpan/build for sizes MIME-tools-5.501/ MIME-tools-5.501/testin/ MIME-tools-5.501/testin/multi-simple.msg ... MIME-tools-5.501/COPYING MIME-tools-5.501/MANIFEST Removing previously used /root/.cpan/build/MIME-tools-5.501 CPAN.pm: Going to build D/DS/DSKOLL/MIME-tools-5.501.tar.gz Checking if your kit is complete... Looks good Writing Makefile for MIME::tools cp lib/MIME/Body.pm blib/lib/MIME/Body.pm cp lib/MIME/Decoder/Gzip64.pm blib/lib/MIME/Decoder/Gzip64.pm ... Manifying blib/man3/MIME::Parser::Reader.3pm /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "- e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t t/02-kwalitee.t ................... skipped: Test::Kwalitee not installed; skipping t/02-pod-coverage.t ............... skipped: Test::Pod::Coverage disabled. TEST_POD_COVERAGE=1 if you want it. t/02-pod.t ........................ ok t/99-prepare.t .................... ok t/attachment-filename-encoding.t .. ok t/Body.t .......................... ok t/BodyPrint.t ..................... ok t/Decoder.t ....................... ok t/EmptyPart.t ..................... ok t/Entity.t ........................ ok t/Filer.t ......................... Wide character in print at /usr/lib/perl5/5.8.8/Test/Builder.pm line 1759. Wide character in print at /usr/lib/perl5/5.8.8/Test/Builder.pm line 1759. Wide character in print at /usr/lib/perl5/5.8.8/Test/Builder.pm line 1759. # Failed test ' wookieЭ.doc was exorcised' # at t/Filer.t line 34. # got: 'wookie%D0.doc' # expected: 'wookie%42D.doc' # Looks like you failed 1 test of 17. Failed 1/31 test programs. 1/409 subtests failed. make: *** [test_dynamic] Error 255 Dubious, test returned 1 (wstat 256, 0x100) Failed 1/17 subtests t/Gauntlet.t ...................... ok t/Head.t .......................... ok t/Misc.t .......................... ok t/ParamVal.t ...................... ok t/Parser.t ........................ ok t/ParserEncoded.t ................. ok t/ParserPreamble.t ................ ok t/Ref.t ........................... ok t/Smtpsend.t ...................... ok t/ticket-11901.t .................. ok t/ticket-22684.t .................. ok t/ticket-37139.t .................. ok t/ticket-41632.t .................. ok t/ticket-43439.t .................. ok t/ticket-52924.t .................. ok t/ticket-60931.t .................. ok t/ticket-65681.t .................. ok t/WordDecoder.t ................... ok t/WordEncoder.t ................... ok t/Words.t ......................... ok Test Summary Report ------------------- t/Filer.t (Wstat: 256 Tests: 17 Failed: 1) Failed test: 17 Non-zero exit status: 1 Files=31, Tests=409, 13 wallclock secs ( 0.25 usr 1.56 sys + 5.83 cusr 3.52 csys = 11.16 CPU) Result: FAIL /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force
Subject: Re: [rt.cpan.org #66188] MIME-Tools Test 17 Fails on Centos 5.5
Date: Sat, 26 Feb 2011 10:54:26 -0500
To: bug-MIME-tools [...] rt.cpan.org
From: "David F. Skoll" <dfs [...] roaringpenguin.com>
Hi, Thanks for the bug report. CentOS 5.5 ships with a pretty old version of Perl that has awful Unicode handling. The test failure is pretty harmless. I have a patch (attached) that will silence the test failure. Please let me know if it fixes it for you. Regards, David.
Download mt-5.8-diff
application/octet-stream 762b

Message body not shown because it is not plain text.

From: leefm40 [...] yahoo.co.uk
Hi David, Thanks that seems to have done the trick. If I understand the patch correctly all it's doing is hard coding the value to the correct test result therefore tricking the check into thinking it is successful? Regards Lee
Subject: Re: [rt.cpan.org #66188] MIME-Tools Test 17 Fails on Centos 5.5
Date: Sat, 26 Feb 2011 14:55:47 -0500
To: bug-MIME-tools [...] rt.cpan.org
From: "David F. Skoll" <dfs [...] roaringpenguin.com>
On Sat, 26 Feb 2011 14:09:07 -0500 "Lee W via RT" <bug-MIME-tools@rt.cpan.org> wrote: Show quoted text
> If I understand the patch correctly all it's doing is hard coding the > value to the correct test result therefore tricking the check into > thinking it is successful?
Sort-of. It's simply the case that Perl 5.8.x doesn't support Unicode very well, so it gives the "wrong" answer (although it's just as safe as the "right" answer.) So I modified the test to check for that case. Regards, David.
Hi, This bug is fixed in MIME::tools 5.502 which I have just uploaded. It should be on CPAN within a few hours. Regards, David.