summaryrefslogtreecommitdiff
path: root/cpan/Module-Build/t/manifypods.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Module-Build/t/manifypods.t')
-rw-r--r--cpan/Module-Build/t/manifypods.t16
1 files changed, 4 insertions, 12 deletions
diff --git a/cpan/Module-Build/t/manifypods.t b/cpan/Module-Build/t/manifypods.t
index 31c9e8ea83..5947646d13 100644
--- a/cpan/Module-Build/t/manifypods.t
+++ b/cpan/Module-Build/t/manifypods.t
@@ -3,15 +3,14 @@
use strict;
use lib 't/lib';
use MBTest;
-use Module::Build;
-use Module::Build::ConfigData;
+blib_load('Module::Build');
+blib_load('Module::Build::ConfigData');
if ( Module::Build::ConfigData->feature('manpage_support') ) {
- plan tests => 22;
+ plan tests => 21;
} else {
plan skip_all => 'manpage_support feature is not enabled';
}
-ensure_blib('Module::Build');
#########################
@@ -139,11 +138,7 @@ $mb->dispatch('realclean');
# revert to a pristine state
-$dist->remove;
-$dist = DistGen->new( dir => $tmp );
-$dist->regen;
-$dist->chdir_in;
-
+$dist->regen( clean => 1 );
my $mb2 = Module::Build->new(
module_name => $dist->name,
@@ -163,6 +158,3 @@ foreach ('testcover', 'disttest') {
unlike $docs, qr/\n=/, $docs;
}
-
-# cleanup
-$dist->remove;