Pod::Simple tests failed with xhtml01.t

Environement

 

perl -V
Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
  Platform:
    osname=linux, osvers=2.6.9-55.0.9.elsmp, archname=i386-linux-thread-multi
    uname='linux hs20-bc1-5.build.redhat.com 2.6.9-55.0.9.elsmp #1 smp tue sep 25 02:16:15 edt 2007 i686 i686 i386 gnulinux '
    config_args='-des -Doptimize=-O2 -g -pipe -m32 -march=i386 -mtune=pentium4 -Dversion=5.8.5 
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=undef use64bitall=undef uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
    optimize='-O2 -g -pipe -m32 -march=i386 -mtune=pentium4',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/include/gdbm'
    ccversion='', gccversion='3.4.6 20060404 (Red Hat 3.4.6-8)', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
  Linker and Libraries:
    ld='gcc', ldflags =' -L/usr/local/lib'
    libpth=/usr/local/lib /lib /usr/lib
    libs=-lresolv -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
    perllibs=-lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.3.4.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.3.4'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.5/i386-linux-thread-multi/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -L/usr/local/lib'
 

Here's the error

 

/root/.cpan/build/Pod-Simple-3.08-V3gWMi > make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00about.t ... ok     
t/20_skip.t ... ok   
t/ac_d.t ...... ok     
t/accept01.t .. ok     
t/accept05.t .. ok     
t/basic.t ..... ok     
t/begin.t ..... ok     
t/cbacks.t .... ok   
t/chunking.t .. ok     
t/closeys.t ... ok   
t/corpus.t .... ok    
t/encod01.t ... ok   
t/encod02.t ... ok   
t/encod03.t ... ok   
t/end_over.t .. ok   
t/fcodes.t .... ok     
t/fcodes_e.t .. ok     
t/fcodes_l.t .. ok     
t/fcodes_s.t .. ok     
t/for.t ....... ok     
t/fornot.t .... ok     
t/fullstop.t .. ok     
t/heads.t ..... ok     
t/html01.t .... ok   
t/html02.t .... ok   
t/html03.t .... ok   
t/htmlbat.t ... ok   
t/items.t ..... ok     
t/items02.t ... ok   
t/itemstar.t .. ok   
t/linkclas.t .. ok   
t/puller.t .... ok       
t/pulltitl.t .. ok       
t/reinit.t .... ok   
t/render.t .... ok     
t/search05.t .. ok     
t/search10.t .. ok   
t/search12.t .. ok   
t/search20.t .. ok   
t/search22.t .. ok     
t/search25.t .. ok     
t/search26.t .. ok   
t/search27.t .. ok     
t/search28.t .. ok   
t/search29.t .. ok   
t/search50.t .. ok   
t/stree.t ..... ok     
t/tiedfh.t .... ok   
t/verb_fmt.t .. ok     
t/verbatim.t .. ok     
t/x_nixer.t ... ok     
t/xhtml01.t ... 1/26 
#   Failed test 'Verbatim text with encodable entities'
#   at t/xhtml01.t line 315.
#          got: '
  # this header is very important & don't you forget it
# my $text = "File is: " . <FILE>;

#
# '
# expected: '

  # this header is very important & don't you forget it
# my $text = "File is: " . <FILE>;

#
# '
# Failed test 'Verbatim text with markup and embedded formatting'
# at t/xhtml01.t line 334.
# got: '

  # this header is very important & don't you forget it
# my $file = <FILE> || 'Blank!'; # my $text = "File is: " . <FILE>;

#
# '
# expected: '

  # this header is very important & don't you forget it
# my $file = <FILE> || 'Blank!'; # my $text = "File is: " . <FILE>;

#
# '
# Looks like you failed 2 tests of 26.
t/xhtml01.t ... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/26 subtests
t/xhtml05.t ... ok
Test Summary Report
-------------------
t/xhtml01.t (Wstat: 512 Tests: 26 Failed: 2)
Failed tests: 24, 26
Non-zero exit status: 2
Files=53, Tests=1095, 5 wallclock secs ( 0.52 usr 0.07 sys + 3.49 cusr 0.42 csys = 4.50 CPU)
Result: FAIL
Failed 1/53 test programs. 2/1095 subtests failed.
make: *** [test_dynamic] Error 255

 

Solution

 

Error comes from HTML code bad translation.

After reading code from XHTML.pm we can see that Pod/Simple/XHTML.pm requires module HTML::Entities

 

Take a look at HTML::Entities

 

cpan[21]> r HTML::Entities

Package namespace         installed    latest  in CPAN file
HTML::Entities                 1.27      3.60  GAAS/HTML-Parser-3.62.tar.gz

This is an old release.

Maybe this newer works now ?

 

Update it !

 

After updating HTML::Entities module, tests for Pod::Simple passed with success.