Subject: [PATCH] Config{extensions} uses filesystem names as extensions
Message-ID: <Pine.SOL.4.58.
0406241505530.14039@maxwell.phys.lafayette.edu>
with improvements from Marcus Holland-Moritz
p4raw-id: //depot/perl@22998
chdir 't' if -d 't';
@INC = '../lib' if -d '../lib';
require Config;
- if (($Config::Config{'extensions'} !~ /\bDevel::PPPort\b/) ){
+ if (($Config::Config{'extensions'} !~ m!\bDevel/PPPort\b!) ){
print "1..0 # Skip -- Perl configured without Devel::PPPort module\n";
exit 0;
}
exit 0;
}
require Config;
- if (($Config::Config{'extensions'} !~ /\bPerlIO::scalar\b/) ){
+ if (($Config::Config{'extensions'} !~ m!\bPerlIO/scalar\b!) ){
print "1..0 # Skip -- Perl configured without PerlIO::scalar module\n";
exit 0;
}
exit 0;
}
require Config;
- if (($Config::Config{'extensions'} !~ /\bPerlIO::via\b/) ){
+ if (($Config::Config{'extensions'} !~ m!\bPerlIO/via\b!) ){
print "1..0 # Skip -- Perl configured without PerlIO::via module\n";
exit 0;
}
chdir 't';
@INC = '../lib';
require Config;
- if (($Config::Config{'extensions'} !~ /\bthreads::shared\b/) ){
+ if (($Config::Config{'extensions'} !~ m!\bthreads/shared\b!) ){
print "1..0 # Skip -- Perl configured without threads::shared module\n";
exit 0;
}
chdir 't' if -d 't';
@INC = '../lib';
require Config;
- if (($Config::Config{'extensions'} !~ /\bList::Util\b/) ){
+ if (($Config::Config{'extensions'} !~ m!\bList/Util\b!) ){
print "1..0 # Skip -- Perl configured without List::Util module\n";
exit 0;
}
exit 0;
}
require Config;
- if (($Config::Config{'extensions'} !~ /\bList::Util\b/) ){
+ if (($Config::Config{'extensions'} !~ m!\bList/Util\b!) ){
print "1..0 # Skip -- Perl configured without List::Util module\n";
exit 0;
}
exit 0;
}
require Config;
- if (($Config::Config{'extensions'} !~ /\bPerlIO::via\b/) ){
+ if (($Config::Config{'extensions'} !~ m!\bPerlIO/via\b!) ){
print "1..0 # Skip -- Perl configured without PerlIO::via module\n";
exit 0;
}
@INC = '.';
push @INC, '../lib';
require Config;
- if (($Config::Config{'extensions'} !~ /\bData::Dumper\b/) ){
+ if (($Config::Config{'extensions'} !~ m!\bData/Dumper\b!) ){
print "1..0 # Skip -- Perl configured without Data::Dumper module\n";
exit 0;
}
chdir 't' if -d 't';
@INC = '../lib';
require Config;
- if (($Config::Config{'extensions'} !~ /\bList::Util\b/) ){
+ if (($Config::Config{'extensions'} !~ m!\bList/Util\b!) ){
print "1..0 # Skip -- Perl configured without List::Util module\n";
exit 0;
}
chdir 't' if -d 't';
@INC = '../lib';
require Config;
- if (($Config::Config{'extensions'} !~ /\bList::Util\b/) ){
+ if (($Config::Config{'extensions'} !~ m!\bList/Util\b!) ){
print "1..0 # Skip -- Perl configured without List::Util module\n";
exit 0;
}
@INC = '../lib';
# FIXME (or rather FIXh2xs)
require Config;
- if (($Config::Config{'extensions'} !~ /\bDevel::PPPort\b/) ){
+ if (($Config::Config{'extensions'} !~ m!\bDevel/PPPort\b!) ){
print "1..0 # Skip -- Perl configured without Devel::PPPort module\n";
exit 0;
}
chdir 't' if -d 't';
@INC = '../lib';
require Config;
- if (($Config::Config{'extensions'} !~ /\bList::Util\b/) ){
+ if (($Config::Config{'extensions'} !~ m!\bList/Util\b!) ){
print "1..0 # Skip -- Perl configured without List::Util module\n";
exit 0;
}
{
skip("miniperl can't rely on loading PerlIO::scalar")
if $ENV{PERL_CORE_MINITEST};
- skip("no PerlIO::scalar") unless $Config{extensions} =~ /PerlIO::scalar/;
+ skip("no PerlIO::scalar") unless $Config{extensions} =~ m!\bPerlIO/scalar\b!;
require PerlIO::scalar;
my $fcontents = join "", map {"$_\015\012"} "a".."zzz";
open my $fh, "<:crlf", \$fcontents;