summaryrefslogtreecommitdiff
path: root/lib/Module/Build/t/versions.t
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2008-09-30 11:25:01 +0000
committerSteve Hay <SteveHay@planit.com>2008-09-30 11:25:01 +0000
commit738349a8c2d75ad4e5c0317bb9f69744bfeef05d (patch)
tree4de809640b31020ba2834a19ded83b7ab3bea56f /lib/Module/Build/t/versions.t
parent5bca5c48fc14b9266d0bbef49a265ce0d735b118 (diff)
downloadperl-738349a8c2d75ad4e5c0317bb9f69744bfeef05d.tar.gz
Upgrade to Module-Build-0.30
Local changes 32357 in ppm.t and 32351 in test_type.t and xs.t remain, but not the tilde.t part of 32351, which looks like it might be superseded by changes in 0.30 p4raw-id: //depot/perl@34446
Diffstat (limited to 'lib/Module/Build/t/versions.t')
-rw-r--r--lib/Module/Build/t/versions.t12
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/Module/Build/t/versions.t b/lib/Module/Build/t/versions.t
index e2d66a96e4..0bf47813a7 100644
--- a/lib/Module/Build/t/versions.t
+++ b/lib/Module/Build/t/versions.t
@@ -2,10 +2,11 @@
use strict;
use lib $ENV{PERL_CORE} ? '../lib/Module/Build/t/lib' : 't/lib';
-use MBTest tests => 2;
+use MBTest tests => 4;
+
+use_ok 'Module::Build';
+ensure_blib('Module::Build');
-use Cwd ();
-my $cwd = Cwd::cwd;
my $tmp = MBTest->tmpdir;
use DistGen;
@@ -14,8 +15,6 @@ $dist->regen;
#########################
-use Module::Build;
-
my @mod = split( /::/, $dist->name );
my $file = File::Spec->catfile( $dist->dirname, 'lib', @mod ) . '.pm';
is( Module::Build->version_from_file( $file ), '0.01', 'version_from_file' );
@@ -25,6 +24,3 @@ ok( Module::Build->compare_versions( '1.01_01', '>', '1.01' ), 'compare: 1.0_01
# cleanup
$dist->remove;
-
-use File::Path;
-rmtree( $tmp );