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';
ok( my $stdout = tie *STDOUT, 'TieOut' );
-SKIP: {
- use Config;
- skip ("installman3dir is null", 1)
- if !$Config{installman3dir} or
- $Config{installman3dir} !~ /\S/ or
- $Config{installman3dir} eq 'none';
+{
+ local $Config{installman3dir} = File::Spec->catdir(qw(t lib));
+
my $mm = WriteMakefile(
NAME => 'Big::Dummy',
VERSION_FROM => 'lib/Big/Dummy.pm',
INSTALLMAN3DIR => 'none'
);
- ok( !keys %{ $mm->{MAN3PODS} } );
+ is_deeply( $mm->{MAN3PODS}, {} );
}