+5.95_01 Sat May 18 14:40:12 EDT 2002
+ - Fixed ExtUtils::testlib so it has a reasonable chance of working
+ under taint mode.
+
5.94_02 Fri May 17 17:16:04 EDT 2002
- Fixing Manifest.t test for relative @INC when core testing.
BEGIN {require 5.005_03;}
-$VERSION = "5.94_02";
+$VERSION = "5.95_01";
$Version_OK = "5.49"; # Makefiles older than $Version_OK will die
# (Will be checked from MakeMaker version 4.13 onwards)
-($Revision = substr(q$Revision: 1.51 $, 10)) =~ s/\s+$//;
+($Revision = substr(q$Revision: 1.53 $, 10)) =~ s/\s+$//;
require Exporter;
use Config;
$VERSION = '1.00';
*VERSION = \'1.01';
- ( $VERSION ) = '$Revision: 1.51 $ ' =~ /\$Revision:\s+([^\s]+)/;
+ ( $VERSION ) = '$Revision: 1.53 $ ' =~ /\$Revision:\s+([^\s]+)/;
$FOO::VERSION = '1.10';
*FOO::VERSION = \'1.11';
our $VERSION = 1.2.3; # new for perl5.6.0
-#!/usr/bin/perl -w
+#!/usr/bin/perl -Tw
BEGIN {
if( $ENV{PERL_CORE} ) {
@INC = '../lib';
}
else {
- unshift @INC, 't/lib';
+ # ./lib is there so t/lib can be seen even after we chdir.
+ unshift @INC, 't/lib', './lib';
}
}
chdir 't';
-use Test::More tests => 3;
+use Test::More tests => 4;
BEGIN {
# non-core tests will have blib in their path. We remove it
@blib_paths = grep { /blib/ } @INC;
is( @blib_paths, 2, 'ExtUtils::testlib added two @INC dirs!' );
+ok( !(grep !File::Spec->file_name_is_absolute($_), @blib_paths),
+ ' and theyre absolute');
package ExtUtils::testlib;
-$VERSION = 1.12_01;
+$VERSION = 1.13_01;
-# So the tests can chdir around and not break @INC.
+use Cwd;
use File::Spec;
-use lib map File::Spec->rel2abs($_), qw(blib/arch blib/lib);
+
+# So the tests can chdir around and not break @INC.
+# We use getcwd() because otherwise rel2abs will blow up under taint
+# mode pre-5.8
+use lib map File::Spec->rel2abs($_, getcwd()), qw(blib/arch blib/lib);
1;
__END__