use Config;
BEGIN {
- if(-d "lib" && -f "TEST") {
- if ($Config{'extensions'} !~ /\bIO\b/ && $^O ne 'VMS') {
- print "1..0\n";
- exit 0;
+ if($ENV{PERL_CORE}) {
+ if ($Config{'extensions'} !~ /\bIO\b/) {
+ print "1..0 # Skip: IO extension not compiled\n";
+ exit 0;
}
}
}
}
require Config; import Config;
if ($] < 5.00326 || not $Config{'d_readdir'}) {
- print "1..0\n";
+ print "1..0 # Skip: readdir() not available\n";
exit 0;
}
}
use Config;
BEGIN {
- if(-d "lib" && -f "TEST") {
- if ($Config{'extensions'} !~ /\bIO\b/ && $^O ne 'VMS') {
- print "1..0\n";
+ if($ENV{PERL_CORE}) {
+ if ($Config{'extensions'} !~ /\bIO\b/) {
+ print "1..0 # Skip: IO extension not compiled\n";
exit 0;
}
}
elsif ($Config{'extensions'} !~ /\bIO\b/) {
$reason = 'IO extension unavailable';
}
- undef $reason if $^O eq 'VMS';
if ($reason) {
print "1..0 # Skip: $reason\n";
exit 0;
elsif ($Config{'extensions'} !~ /\bIO\b/) {
$reason = 'IO extension unavailable';
}
- undef $reason if $^O eq 'VMS' and $Config{d_socket};
if ($reason) {
print "1..0 # Skip: $reason\n";
exit 0;
} elsif ($^O =~ m/^(?:qnx|nto)$/ ) {
$reason = 'Not implemented';
}
- undef $reason if $^O eq 'VMS' and $Config{d_socket};
if ($reason) {
print "1..0 # Skip: $reason\n";
exit 0;
use Config;
BEGIN {
- if(-d "lib" && -f "TEST") {
- if ($Config{'extensions'} !~ /\bIO\b/ && $^O ne 'VMS') {
- print "1..0\n";
+ if($ENV{PERL_CORE}) {
+ if ($Config{'extensions'} !~ /\bIO\b/) {
+ print "1..0 # Skip: IO extension not built\n";
exit 0;
}
}
+ if( $^O eq 'VMS' && $Config{'vms_cc_type'} ne 'decc' ) {
+ print "1..0 # Skip: not compatible with the VAXCRTL\n";
+ exit 0;
+ }
}
use IO::File;
use File::Spec;
@compexcl=('cpp.t');
-@libexcl=('io_pipe.t', 'io_poll.t', 'io_sel.t',
- 'io_sock.t', 'io_unix.t');
-
-# io_xs.t tests the new_tmpfile routine, which doesn't work with the
-# VAXCRTL, since the file can't be stat()d, an Perl's do_open()
-# insists on stat()ing a file descriptor before it'll use it.
-push(@libexcl,'io_xs.t') if $Config{'vms_cc_type'} ne 'decc';
+@libexcl=('io_sel.t');
@opexcl=('die_exit.t','exec.t','groups.t','magic.t','stat.t');
@exclist=(@compexcl,@ioexcl,@libexcl,@opexcl);