develooper Front page | perl.perl5.porters | Postings from June 2019

Smoke FAILs due to PERL_UNICODE

Thread Next
From:
H.Merijn Brand
Date:
June 28, 2019 13:49
Subject:
Smoke FAILs due to PERL_UNICODE
Message ID:
20190628154842.2c4af1a3@pc09.procura.nl
As per somewhere around 2019-05-27, my smokes stated to FAIL in UNICODE
environment, which is easy to reproduce (having $LANG set to en_US.UTF-8)

I know that the default conf for Test::Smoke is to *not* test with
UNICODE environment. Personally I think it should, but anyway, I tried
a bisect. *please* correct me if I did this wrong, so I can learn

perl/t $ ./perl harness -v ../cpan/Pod-Simple/t/JustPod_corpus.t
../cpan/Pod-Simple/t/JustPod_corpus.t ..
# TESTDIR: t
1..16
ok 1 - Skip 't/junk2.pod' because of pod errors
# t/junk2.pod: 2: Unknown directive: =head9
# t/junk2.pod: 4: Unterminated B<...> sequence
ok 2 - got expected output for t/perlfaq.pod
ok 3 - Skip 't/junk1.pod' because of pod errors
# t/junk1.pod: 2: =cut found outside a pod block.  Skipping to next block.
# t/junk1.pod: 4: Unknown directive: =head9
# t/junk1.pod: 6: Unterminated B<...> sequence
ok 4 - got expected output for t/perlcyg.pod
ok 5 - got expected output for t/perlvar.pod
ok 6 - got expected output for t/testlib2/pod/perlthng.pod
ok 7 - got expected output for t/testlib2/pod/perlzuk.pod
ok 8 - got expected output for t/testlib2/hinkhonk/Glunk.pod
ok 9 - got expected output for t/testlib2/squaa/Wowo.pod
ok 10 - got expected output for t/corpus/laozi38p.pod
ok 11 - got expected output for t/corpus/8859_7.pod
ok 12 - got expected output for t/testlib1/zikzik.pod
ok 13 - got expected output for t/testlib1/pod/perlflif.pod
ok 14 - got expected output for t/testlib1/pod/perlthng.pod
ok 15 - got expected output for t/testlib1/hinkhonk/Glunk.pod
ok 16 - got expected output for t/testlib1/squaa/Glunk.pod
ok
All tests successful.
Files=1, Tests=16,  0 wallclock secs ( 0.00 usr  0.00 sys +  0.18 cusr  0.00 csys =  0.18 CPU)
Result: PASS

perl/t $ env PERL_UNICODE="" ./perl harness -v ../cpan/Pod-Simple/t/JustPod_corpus.t
../cpan/Pod-Simple/t/JustPod_corpus.t ..
# TESTDIR: t
1..16
ok 1 - Skip 't/junk2.pod' because of pod errors
# t/junk2.pod: 2: Unknown directive: =head9
# t/junk2.pod: 4: Unterminated B<...> sequence
ok 2 - got expected output for t/perlfaq.pod
ok 3 - Skip 't/junk1.pod' because of pod errors
# t/junk1.pod: 2: =cut found outside a pod block.  Skipping to next block.
# t/junk1.pod: 4: Unknown directive: =head9
# t/junk1.pod: 6: Unterminated B<...> sequence
ok 4 - got expected output for t/perlcyg.pod
ok 5 - got expected output for t/perlvar.pod
ok 6 - got expected output for t/testlib2/pod/perlthng.pod
ok 7 - got expected output for t/testlib2/pod/perlzuk.pod
ok 8 - got expected output for t/testlib2/hinkhonk/Glunk.pod
ok 9 - got expected output for t/testlib2/squaa/Wowo.pod
Malformed UTF-8 character: \xa6 (unexpected continuation byte 0xa6, with no preceding start byte) in pattern match (m//) at /pro/3gl/CPAN/perl-current/cpan/Pod-Simple/../../lib/Pod/Simple.pm line 424.
Malformed UTF-8 character (fatal) at /pro/3gl/CPAN/perl-current/cpan/Pod-Simple/../../lib/Pod/Simple.pm line 424.
# Looks like your test exited with 2 just after 9.
Dubious, test returned 2 (wstat 512, 0x200)
Failed 7/16 subtests

Test Summary Report
-------------------
../cpan/Pod-Simple/t/JustPod_corpus.t (Wstat: 512 Tests: 9 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 16 tests but ran 9.
Files=1, Tests=9,  0 wallclock secs ( 0.01 usr  0.00 sys +  0.18 cusr  0.00 csys =  0.19 CPU)
Result: FAIL


perl $ env PERL_UNICODE="" /pro/bin/perl Porting/bisect.pl --target cpan/Pod-Simple/t/JustPod_corpus.t --start d4e32ec55bb4cf7
:
:
:
chmod 755 ../../lib/auto/Unicode/Normalize/Normalize.so
make[1]: Leaving directory '/data/pro/3gl/CPAN/perl-git/dist/Unicode-Normalize'
./perl -Ilib -I. -f pod/buildtoc -q
cd t && (rm -f perl; /usr/bin/ln -s ../perl perl)
t/../cpan/Pod-Simple/t/JustPod_corpus ... Malformed UTF-8 character: \xcf\xeb (unexpected non-continuation byte 0xeb, immediately after start byte 0xcf; need 2 bytes, got 1) in pattern match (m//) at /data/pro/3gl/CPAN/perl-git/cpan/Pod-Simple/../../lib/Pod/Simple.pm line 424.
Malformed UTF-8 character (fatal) at /data/pro/3gl/CPAN/perl-git/cpan/Pod-Simple/../../lib/Pod/Simple.pm line 424.
# Looks like your test exited with 2 just after 5.
FAILED--expected 16 tests, saw 5
Failed 1 test out of 1, 0.00% okay.
        ../cpan/Pod-Simple/t/JustPod_corpus.t
### Since not all tests were successful, you may want to run some of
### them individually and examine any diagnostic messages they produce.
### See the INSTALL document's section on "make test".
### You may have to set your dynamic library search path,
### LD_LIBRARY_PATH, to point to the build directory:
###   setenv LD_LIBRARY_PATH `pwd`:$LD_LIBRARY_PATH; cd t; ./perl harness
###   LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd t; ./perl harness
###   export LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH; cd t; ./perl harness
### for csh-style shells, like tcsh; or for traditional/modern
### Bourne-style shells, like bash, ksh, and zsh, respectively.
Elapsed: 0 sec
u=0.01  s=0.00  cu=0.23  cs=0.00  scripts=1  tests=16
HEAD is now at 1a7108fea1 PATCH: [perl #133996] reword diagnostic
bad - non-zero exit from sh -c cd t && ./perl TEST \.\.\/cpan\/Pod\-Simple\/t\/JustPod_corpus\.t
Previous HEAD position was 1a7108fea1 PATCH: [perl #133996] reword diagnostic
HEAD is now at d4e32ec55b Module-CoreList: Add some L<> to pod
HEAD is now at d4e32ec55b Module-CoreList: Add some L<> to pod
skipping - Test case cpan/Pod-Simple/t/JustPod_corpus.t is not a readable file at /tmp/0gRcJIB7H9 line 1241.
Runner returned 32000, not 0 for start revision at Porting/bisect.pl line 240.
That took 127 seconds.

What's next?
-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.29   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About