Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Pod-Simple CPAN distribution.

Report information
The Basics
Id: 25189
Status: resolved
Priority: 0/
Queue: Pod-Simple

People
Owner: Nobody in particular
Requestors: jdhedden [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.04
Fixed in: (no value)



Subject: Tests fail when Encode not built
When Encode is not built in Perl (I don't need it so I don't compile it), corpustest.t fails. That attached patch skips the tests when Encode is not built. (This patch has also been submitted to blead.)
Subject: no_encode.patch
--- perl-current/lib/Pod/Simple/t/corpustest.t 2006-06-13 15:29:18.000000000 -0400 +++ perl-patched/lib/Pod/Simple/t/corpustest.t 2007-02-27 14:10:28.000000000 -0500 @@ -3,6 +3,12 @@ chdir 't'; @INC = '../lib'; } + + require Config; import Config; + if ($Config{'extensions'} !~ /\bEncode\b/) { + print "1..0 # Skip: Encode was not built\n"; + exit 0; + } } #use Pod::Simple::Debug (10);
On Tue Feb 27 14:20:11 2007, JDHEDDEN wrote: Show quoted text
> When Encode is not built in Perl (I don't need it so I don't compile > it), corpustest.t fails. That attached patch skips the tests when > Encode is not built. (This patch has also been submitted to blead.)
Sorry. Here's a revised version that ensures no problem with the $Config.
--- perl-current/lib/Pod/Simple/t/corpustest.t 2006-06-13 15:29:18.000000000 -0400 +++ perl-patched/lib/Pod/Simple/t/corpustest.t 2007-02-27 14:10:28.000000000 -0500 @@ -3,6 +3,12 @@ chdir 't'; @INC = '../lib'; } + + use Config; + if ($Config::Config{'extensions'} !~ /\bEncode\b/) { + print "1..0 # Skip: Encode was not built\n"; + exit 0; + } } #use Pod::Simple::Debug (10);
Applied for 3.05 release.