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);