Subject: | t/render.t failure |
Hi,
I'm trying to install Pod::Simple on perl 5.005_04 (because it's a MakeMaker dependency) and
I hit some snags with t/render.t. First it couldn't find any of its modules because it chdir()-
ed at the wrong time, so I offer this patch.
With this, all tests pass.
-Ken
--- t/render.t~ 2006-01-16 19:52:35.000000000 -0600
+++ t/render.t 2006-07-18 23:09:15.000000000 -0500
@@ -1,6 +1,6 @@
BEGIN {
- chdir 't';
if($ENV{PERL_CORE}) {
+ chdir 't';
@INC = '../lib';
}
}
@@ -20,6 +20,8 @@
$Pod::Simple::Text::FREAKYMODE = 1;
use Pod::Simple::TiedOutFH ();
+chdir 't' unless $ENV{PERL_CORE};
+
sub source_path {
my $file = shift;
if ($ENV{PERL_CORE}) {