From: Rafael Garcia-Suarez Date: Thu, 22 Feb 2007 18:29:18 +0000 (+0000) Subject: Reinstate tests removed by change #30381, but don't X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=608a105b876e178af7d740d5bad843bf3cce4787;p=p5sagit%2Fp5-mst-13.2.git Reinstate tests removed by change #30381, but don't "use Config" in the test, because that will overwrite %main::Config with the real Config hash, not the fake one from MakeMaker. p4raw-link: @30381 on //depot/perl: cb7d39f54ca678d4ba0e91eaea2d10f4ab6317d7 p4raw-id: //depot/perl@30382 --- diff --git a/lib/ExtUtils/t/build_man.t b/lib/ExtUtils/t/build_man.t index 1b92829..0dd7eb1 100644 --- a/lib/ExtUtils/t/build_man.t +++ b/lib/ExtUtils/t/build_man.t @@ -15,11 +15,17 @@ BEGIN { use strict; use Test::More tests => 9; +use File::Spec; use TieOut; use MakeMaker::Test::Utils; use MakeMaker::Test::Setup::BFD; use ExtUtils::MakeMaker; +use ExtUtils::MakeMaker::Config; + +# Simulate an installation which has man page generation turned off to +# ensure these tests will still work. +$Config{installman3dir} = 'none'; chdir 't'; @@ -37,7 +43,6 @@ ok( chdir 'Big-Dummy', "chdir'd to Big-Dummy" ) || ok( my $stdout = tie *STDOUT, 'TieOut' ); SKIP: { - use Config; skip ("installman3dir is null", 1) if !$Config{installman3dir} or $Config{installman3dir} !~ /\S/ or @@ -51,6 +56,8 @@ SKIP: { } { + local $Config{installman3dir} = File::Spec->catdir(qw(t lib)); + my $mm = WriteMakefile( NAME => 'Big::Dummy', VERSION_FROM => 'lib/Big/Dummy.pm',