Subject: | tests fail when PERL_UNICODE is set |
I have PERL_UNICODE=ASDL set (see perlrun).
Attached log was produced by
make test TEST_VERBOSE=1 > make-test-test-verbose.log 2>&1
Binmode your binary files. Take care of properly decoding data from
outside to Perl characters.
diff -ru XML-Atom-0.25_02~/t/16-content-binary.t
XML-Atom-0.25_02/t/16-content-binary.t
--- XML-Atom-0.25_02~/t/16-content-binary.t 2006-08-16
07:40:36.000000000 +0200
+++ XML-Atom-0.25_02/t/16-content-binary.t 2007-07-20
20:38:01.000000000 +0200
@@ -16,6 +16,7 @@
sub slurp {
my $file = shift;
open my$fh, $file or die $!;
+ binmode $fh;
local $/;
<$fh>;
}
diff -ru XML-Atom-0.25_02~/t/25-utf8-create.t
XML-Atom-0.25_02/t/25-utf8-create.t
--- XML-Atom-0.25_02~/t/25-utf8-create.t 2006-09-16
08:55:53.000000000 +0200
+++ XML-Atom-0.25_02/t/25-utf8-create.t 2007-07-20 20:38:26.000000000 +0200
@@ -1,5 +1,6 @@
use strict;
use Test::More 'no_plan';
+use Encode;
use FindBin;
use XML::Atom::Feed;
@@ -9,10 +10,11 @@
my $out = "$FindBin::Bin/utf8-create.xml";
open my $fh, ">", $out;
+binmode $fh;
print $fh $feed->as_xml_utf8;
close $fh;
$feed = XML::Atom::Feed->new($out);
-is $feed->title, "Dicion\xc3\xa1rios";
+is decode_utf8($feed->title), "Dicion\xc3\xa1rios";
END { unlink $out if -e $out }
Subject: | make-test-test-verbose.log |
/usr/bin/perl "-Iinc" Makefile.PL --config= --installdeps=LWP::Authen::Wsse,0
*** Since we're running under CPANPLUS, I'll just let it take care
of the dependency's installation later.
cp lib/XML/Atom/Entry.pm blib/lib/XML/Atom/Entry.pm
cp lib/XML/Atom/Person.pm blib/lib/XML/Atom/Person.pm
cp lib/XML/Atom/ErrorHandler.pm blib/lib/XML/Atom/ErrorHandler.pm
cp lib/XML/Atom/Link.pm blib/lib/XML/Atom/Link.pm
cp lib/XML/Atom/Category.pm blib/lib/XML/Atom/Category.pm
cp lib/XML/Atom/Server.pm blib/lib/XML/Atom/Server.pm
cp lib/XML/Atom/Util.pm blib/lib/XML/Atom/Util.pm
cp lib/XML/Atom/Thing.pm blib/lib/XML/Atom/Thing.pm
cp lib/XML/Atom.pm blib/lib/XML/Atom.pm
cp lib/XML/Atom/Feed.pm blib/lib/XML/Atom/Feed.pm
cp lib/XML/Atom/Content.pm blib/lib/XML/Atom/Content.pm
cp lib/XML/Atom/Base.pm blib/lib/XML/Atom/Base.pm
cp lib/XML/Atom/Client.pm blib/lib/XML/Atom/Client.pm
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'inc', 'blib/lib', 'blib/arch')" t/00-compile.t t/01-util.t t/02-content.t t/03-link.t t/04-person.t t/11-entry.t t/12-feed.t t/13-atom1.t t/14-atom1-create.t t/15-content-image.t t/16-content-binary.t t/17-renames.t t/18-unicode.t t/19-ext.t t/20-content-xhtml.t t/23-category.t t/24-bad-content.t t/25-utf8-create.t t/27-client-leaks.t t/28-ext.t
t/00-compile...........1..6
ok 1 - use XML::Atom;
ok 2 - use XML::Atom::Entry;
ok 3 - use XML::Atom::Feed;
ok 4 - use XML::Atom::Person;
ok 5 - use XML::Atom::Content;
ok 6 - use XML::Atom::Link;
ok
t/01-util..............1..12
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok
t/02-content...........1..32
ok 1 - The object isa XML::Atom::Content
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20
ok 21
ok 22
ok 23
ok 24
ok 25
ok 26
ok 27
ok 28
ok 29
ok 30
ok 31
ok 32
ok
t/03-link..............1..14
ok 1 - The object isa XML::Atom::Link
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok
t/04-person............1..9
ok 1 - The object isa XML::Atom::Person
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok
t/11-entry.............1..71
ok 1
ok 2 - The object isa XML::Atom::Entry
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14 - The object isa XML::Atom::Person
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20
ok 21 - The object isa XML::Atom::Content
ok 22
ok 23
ok 24
ok 25
ok 26
ok 27
ok 28
ok 29
ok 30
ok 31
ok 32
ok 33 - The object isa XML::Atom::Link
ok 34
ok 35
ok 36
ok 37
ok 38
ok 39
ok 40
ok 41
ok 42
ok 43
ok 44
ok 45 - The object isa XML::Atom::Entry
ok 46
ok 47
ok 48
ok 49 - The object isa XML::Atom::Content
ok 50
ok 51
ok 52
ok 53 - The object isa XML::Atom::Person
ok 54
ok 55
ok 56
ok 57
ok 58
ok 59
ok 60
ok 61
ok 62
ok 63
ok 64
ok 65
ok 66
ok 67
ok 68
ok 69
ok 70
ok 71
ok
t/12-feed..............1..32
ok 1 - The object isa XML::Atom::Feed
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12 - The object isa XML::Atom::Person
ok 13
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20
ok 21
ok 22
ok 23
ok 24
ok 25
ok 26
ok 27
ok 28
ok 29
ok 30
ok 31
ok 32
ok
t/13-atom1.............1..23
ok 1 - The object isa XML::Atom::Feed
ok 2 - atom:title
ok 3 - atom:version based on namespace
ok 4 - atom:updated
ok 5 - 2 links
ok 6
ok 7
ok 8 - 1 entry
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15 - 2 contribs
ok 16
ok 17
ok 18 - 2 contribs (moniker)
ok 19
ok 20
ok 21 - testing scalar context
ok 22
ok 23
ok
t/14-atom1-create......1..9
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok
t/15-content-image.....1..2
ok 1
ok 2
ok
t/16-content-binary....1..1
utf8 "\xFF" does not map to Unicode at t/16-content-binary.t line 20, <$fh> chunk 1.
Malformed UTF-8 character (fatal) at /home/daxim/.cpan/build/XML-Atom-0.25_02-nFIMuC/blib/lib/XML/Atom/Content.pm line 152.
# No tests run!
dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/17-renames...........1..5
ok 1
ok 2 - 2005-07-11T12:29:29Z
ok 3 - 2003-12-13T08:29:29-04:00
ok 4
ok 5
ok
t/18-unicode...........ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
1..14
ok
t/19-ext...............1..9
ok 1 - The object isa XML::Atom::Ext::Foo
ok 2
ok 3
ok 4
ok 5 - The object isa XML::Atom::Ext::Foo
ok 6
ok 7 - The object isa XML::Atom::Ext::Foo
ok 8
ok 9
ok
t/20-content-xhtml.....1..2
ok 1 - Stupid default: namespace has been stripped
ok 2 - Stupid default: namespace has been stripped
ok
t/23-category..........ok 1
ok 2
ok 3 - returns list in a list context
ok 4
ok 5
ok 6
ok 7 - scalar context isa XML::Atom::Category
ok 8
ok 9 - moniker
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
ok 17
1..17
ok
t/24-bad-content.......1..2
ok 1
ok 2
ok
t/25-utf8-create.......not ok 1
# Failed test at t/25-utf8-create.t line 16.
# got: 'DicionÃÂários'
# expected: 'Dicionários'
1..1
# Looks like you failed 1 test of 1.
dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 1
Failed 1/1 tests, 0.00% okay
t/27-client-leaks......1..1
ok 1
ok
t/28-ext...............1..8
ok 1 - creating extension link
ok 2 - extension accessors
ok 3 - extension accessors
ok 4 - extension accessors
ok 5 - ext namespace
ok 6 - ext link match
ok 7 - ext method match
ok 8 - standard link match
ok
Failed Test Stat Wstat Total Fail List of Failed
-------------------------------------------------------------------------------
t/16-content-binary.t 255 65280 1 2 1
t/25-utf8-create.t 1 256 1 1 1
Failed 2/20 test scripts. 2/270 subtests failed.
Files=20, Tests=270, 5 wallclock secs ( 2.54 cusr + 0.43 csys = 2.97 CPU)
Failed 2/20 test programs. 2/270 subtests failed.
make: *** [test_dynamic] Fehler 255