Subject: | Carp has no POD on my 5.18.1 installation -> still test suite failures with 1.51 |
Date: | Fri, 27 Sep 2013 22:32:53 +0200 |
To: | bug-pmtools [...] rt.cpan.org |
From: | Axel Beckert <abe [...] debian.org> |
Hi Mark,
thanks for the quick 1.51 bug fix release. Much appreciated since I
don't want to disable running the test suite at build time for the
Debian package of pmtools.
In the Changes for 1.51 you write:
- Fixed t/pman.t, t/pmcat.t, and t/pmdesc.t to use the Carp module
because Carp always has POD (Tie::Hash may not depending on
the Perl version, and see above for Scalar::Util problems).
Unfortunately this seems not true. On Debian Unstable with Perl 5.18.1
(from packages):
→ env PATH="bin:$PATH" prove t/*.t
t/basepods.t .. ok
t/faqpods.t ... ok
t/modpods.t ... ok
t/pfcat.t ..... ok
t/plxload.t ... ok
t/pmall.t ..... ok
t/pman.t ...... 1/2
# Failed test 'found Carp'
# at t/pman.t line 19.
# 'pod2text: unable to format /usr/share/perl/5.18/Carp.pm
# '
# doesn't match '(?^ms:NAME.*[Cc]arp - \w.*SYNOPSIS.*DESCRIPTION)'
# Looks like you failed 1 test of 2.
t/pman.t ...... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
t/pmcat.t ..... 1/2
# Failed test 'catted Carp'
# at t/pmcat.t line 19.
# 'package Carp;
#
# { use 5.006; }
# use strict;
# use warnings;
[…]
# 1;
#
# __END__
#
# '
# doesn't match '(?^ms:.*package Carp\;.*\=head1 SYNOPSIS)'
# Looks like you failed 1 test of 2.
t/pmcat.t ..... Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
t/pmcheck.t ... ok
t/pmdesc.t .... 1/2
# Failed test 'pmdesc runs'
# at t/pmdesc.t line 18.
# got: '256'
# expected: '0'
# Failed test 'described a module'
# at t/pmdesc.t line 19.
# 'no description found
# '
# doesn't match '(?^:Carp \(\d+\.\d+\) - \w)'
# Looks like you failed 2 tests of 2.
t/pmdesc.t .... Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
t/pmeth.t ..... ok
t/pmexp.t ..... ok
t/pmfunc.t .... ok
t/pmload.t .... ok
t/pmls.t ...... ok
t/pmpath.t .... ok
t/pmvers.t .... ok
t/podgrep.t ... ok
t/pods.t ...... ok
t/podtoc.t .... ok
t/sitepods.t .. ok
t/stdpods.t ... ok
Test Summary Report
-------------------
t/pman.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 2
Non-zero exit status: 1
t/pmcat.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 2
Non-zero exit status: 1
t/pmdesc.t (Wstat: 512 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 2
Files=22, Tests=42, 9 wallclock secs ( 0.12 usr 0.18 sys + 5.99 cusr 2.46 csys = 8.75 CPU)
Result: FAIL
And I checked manually: There's really no POD in Carp.pm here.
$ pmpath Carp
/usr/share/perl/5.18/Carp.pm
$ egrep '^=' /usr/share/perl/5.18/Carp.pm
$
I'm not sure if continuousky guessing which module could have "always"
POD is really the way to go, but I've no better idea currently either.
In my case English.pm would have worked, so I suggest to use that:
$ egrep '^=' /usr/share/perl/5.18/English.pm
=head1 NAME
=head1 SYNOPSIS
=head1 DESCRIPTION
=head1 PERFORMANCE
=cut
$
Regards, Axel
--
,''`. | Axel Beckert <abe@debian.org>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
`- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5