Subject: | "make test" fails when LANG is set |
Hi:
Encode::CNMap's "make test" fails for me with my typical environment, which
has LANG=en_US.UTF-8; without that setting it succeeds.
I think this can be fixed by forcing the test files to be read in raw mode
instead of whatever perlio deducts from the environment. (see attached patch).
I've seen the issue with perl 5.8.0 under both RedHat Linux 9 and Solaris 8.
:(
Meg Crocker
------------------
~/Encode-CNMap-0.20% unset LANG
~/Encode-CNMap-0.20% make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/CNMap....ok
All tests successful.
Files=1, Tests=17, 0 wallclock secs ( 0.13 cusr + 0.00 csys = 0.13 CPU)
~/Encode-CNMap-0.20% LANG=en_US.UTF-8; export LANG
~/Encode-CNMap-0.20% make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/CNMap....Wide character in subroutine entry at /usr/lib/perl5/5.8.0/i386-linux-thread-multi/Encode.pm line 184, <_> line 1.
# Looks like you planned 17 tests but only ran 11.
# Looks like your test died just after 11.
t/CNMap....dubious
Test returned status 255 (wstat 65280, 0xff00)
DIED. FAILED tests 12-17
Failed 6/17 tests, 64.71% okay
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/CNMap.t 255 65280 17 6 35.29% 12-17
Failed 1/1 test scripts, 0.00% okay. 6/17 subtests failed, 64.71% okay.
make: *** [test_dynamic] Error 2
Message body not shown because it is not plain text.