Subject: | make test - t/test_non_ascii.t fails |
Hi,
I'm a member of the Debian Perl Group, and while packaging your module,
I've found that it fails the testsuite:
--8<--
t/test_non_ascii......................
# Failed test 'toString (on file)'
# in t/test_non_ascii.t at line 15.
# got: '<doc><ent>aü</ent><char>bü</char></doc>
# '
# expected: '<doc><ent>a�</ent><char>b�</char></doc>
# '
t/test_non_ascii......................ok 2/10
# Failed test 'findnodes_as_string( '//char') (on file)'
# in t/test_non_ascii.t at line 17.
# got: '<char>bü</char>'
# expected: '<char>b�</char>'
t/test_non_ascii......................NOK 3
# Failed test 'findvalue( '//ent') (on file)'
# in t/test_non_ascii.t at line 18.
# got: 'aü'
# expected: 'a
# Failed test 'findnodes_as_string( '//ent') (on file)'
# in t/test_non_ascii.t at line 19.
# got: '<ent>aü</ent>'
# expected: '<ent>a�</ent>'
# Failed test 'toString (on string)'
# in t/test_non_ascii.t at line 27.
# got: '<doc><ent>aü</ent><char>bü</char></doc>
# '
# expected: '<doc><ent>a�</ent><char>b�</char></doc>
# '
t/test_non_ascii......................NOK 6
t/test_non_ascii......................NOK 8# Failed test
'findnodes_as_string( '//char') (on string)'
# in t/test_non_ascii.t at line 29.
# got: '<char>bü</char>'
# expected: '<char>b�</char>'
# Failed test 'findvalue( '//ent') (on string)'
# in t/test_non_ascii.t at line 30.
t/test_non_ascii......................NOK 9# got: 'aü'
# expected: 'a
# Failed test 'findnodes_as_string( '//ent') (on string)'
# in t/test_non_ascii.t at line 31.
t/test_non_ascii......................NOK 10# got:
'<ent>aü</ent>'
# expected: '<ent>a�</ent>'
# Looks like you failed 8 tests of 10.
t/test_non_ascii......................dubious
Test returned status 8 (wstat 2048, 0x800)
DIED. FAILED tests 1, 3-6, 8-10
Failed 8/10 tests, 20.00% okay
--8<--
This happens with LANG=it_IT.UTF-8. We also tried other charsets, like
ISO-8859-15, ISO-8859-1 and LANG=C, but neither worked.
Is there a solution to this? This problem is stopping your module from
being included in Debian repositories. And no, skipping 'make test'
cannot be a solution, we are used to run make test when building all our
packages (this is to ensure that each package entering Debian is fully
functional).
Kindly,
David Paleino
Debian Perl Group
http://pkg-perl.alioth.debian.org/