SKIP: {
skip "This perl uses perlio", 1 if $Config{useperlio};
- skip "miniperl cannot be relied on to load %Errno"
- if $ENV{PERL_CORE_MINITEST};
+ skip_if_miniperl("miniperl can't rely on loading %Errno", 1);
# Force the reference to %! to be run time by writing ! as {"!"}
skip "This system doesn't understand EINVAL", 1
unless exists ${"!"}{EINVAL};
$Is_os2 = $^O eq 'os2';
$Is_Cygwin = $^O eq 'cygwin';
$Is_MPE = $^O eq 'mpeix';
-$Is_miniperl = $ENV{PERL_CORE_MINITEST};
$Is_BeOS = $^O eq 'beos';
$PERL = $ENV{PERL}
}
SKIP: {
- skip ("miniperl can't rely on loading %Errno", 2) if $Is_miniperl;
+ skip_if_miniperl("miniperl can't rely on loading %Errno", 2);
no warnings 'void';
# Make sure Errno hasn't been prematurely autoloaded
}
SKIP: {
- skip ("miniperl can't rely on loading %Errno") if $Is_miniperl;
+ skip_if_miniperl("miniperl can't rely on loading %Errno", 1);
# Make sure that Errno loading doesn't clobber $!
undef %Errno::;
use Tie::Array;
use Tie::Hash;
-use if !$ENV{PERL_CORE_MINITEST}, "Tie::RefHash";
# Predeclare vars used in the tests:
my @empty;
our $str_obj = Test::Object::StringOverload->new;
my %refh;
-if (!$ENV{PERL_CORE_MINITEST}) {
+unless (is_miniperl()) {
+ require Tie::RefHash;
tie %refh, 'Tie::RefHash';
$refh{$ov_obj} = 1;
}
if ($note =~ /NOWARNINGS/) {
$res = eval "no warnings; $tstr";
}
- elsif ($note =~ /MINISKIP/ && $ENV{PERL_CORE_MINITEST}) {
- skip("Doesn't work with miniperl", $yn =~ /=/ ? 2 : 1);
- }
else {
+ skip_if_miniperl("Doesn't work with miniperl", $yn =~ /=/ ? 2 : 1)
+ if $note =~ /MINISKIP/;
$res = eval $tstr;
}
*CmT = *{$::{Comment}}{FORMAT};
ok defined *{$::{CmT}}{FORMAT}, "glob assign";
-if ($ENV{PERL_CORE_MINITEST}) {
- ok 1, "Skip test for miniperl, as it does not support scalario";
-}
-else {
+SKIP: {
+ skip_if_miniperl('miniperl does not support scalario');
my $buf = "";
open my $fh, ">", \$buf;
my $old_fh = select $fh;