require './test.pl';
skip_all_without_perlio();
# FIXME - more of these could be tested without Encode or full perl
- skip_all_if_miniperl("no dynamic loading on miniperl, no Encode");
- skip_all_without_extension('Encode');
+ skip_all_without_dynamic_extension('Encode');
# Makes testing easier.
$ENV{PERLIO} = 'stdio' if exists $ENV{PERLIO} && $ENV{PERLIO} eq '';
@INC = '../lib';
require './test.pl';
skip_all_without_perlio();
- skip_all_if_miniperl("no dynamic loading on miniperl, no Fcntl");
- skip_all_without_extension('Fcntl'); # how did you get this far?
+ skip_all_without_dynamic_extension('Fcntl'); # how did you get this far?
}
use strict;
my @symbols;
BEGIN {
require './test.pl';
- skip_all_without_extension('B');
- skip_all_without_extension('Fcntl');
+ skip_all_without_dynamic_extension($_) foreach qw(B Fcntl);
# S_IFMT is a real subroutine, and acts as control
# SEEK_SET is a proxy constant subroutine.
@symbols = qw(S_IFMT SEEK_SET);
skip_all(@_) if is_miniperl();
}
-sub skip_all_without_extension {
+sub skip_all_without_dynamic_extension {
my $extension = shift;
+ skip_all("no dynamic loading on miniperl, no $extension") if is_miniperl();
unless (eval {require Config; 1}) {
warn "test.pl had problems loading Config: $@";
return;
BEGIN {
require './test.pl';
- skip_all_if_miniperl("no dynamic loading on miniperl, no Encode");
+ skip_all_without_dynamic_extension('Encode');
skip_all("EBCDIC") if $::IS_EBCDIC;
skip_all_without_perlio();
- skip_all_without_extension('Encode');
}
use strict;
BEGIN {
require './test.pl';
- skip_all_if_miniperl("no dynamic loading on miniperl, no Encode");
+ skip_all_without_dynamic_extension('Encode');
skip_all("EBCDIC") if $::IS_EBCDIC;
skip_all_without_perlio();
- skip_all_without_extension('Encode');
}
use strict;
BEGIN {
require './test.pl';
- skip_all_if_miniperl("no dynamic loading on miniperl, no Encode");
+ skip_all_without_dynamic_extension('Encode');
skip_all("EBCDIC") if $::IS_EBCDIC;
skip_all_without_perlio();
- skip_all_without_extension('Encode');
}
plan tests => 72;
BEGIN {
require './test.pl';
- skip_all_if_miniperl("no dynamic loading on miniperl, no Encode");
+ skip_all_without_dynamic_extension('Encode');
skip_all("EBCDIC") if $::IS_EBCDIC;
skip_all_without_perlio();
- skip_all_without_extension('Encode');
}
plan tests => 94;
BEGIN {
require './test.pl';
- skip_all_if_miniperl("no dynamic loading on miniperl, no Encode");
+ skip_all_without_dynamic_extension('Encode');
skip_all("EBCDIC") if $::IS_EBCDIC;
skip_all_without_perlio();
- skip_all_without_extension('Encode');
}
use strict;
BEGIN {
require './test.pl';
- skip_all_if_miniperl("no dynamic loading on miniperl, no Encode");
+ skip_all_without_dynamic_extension('Encode');
skip_all("EBCDIC") if $::IS_EBCDIC;
skip_all_without_perlio();
- skip_all_without_extension('Encode');
}
use strict;
BEGIN {
require './test.pl';
- skip_all_if_miniperl("no dynamic loading on miniperl, no Encode");
+ skip_all_without_dynamic_extension('Encode');
skip_all("EBCDIC") if $::IS_EBCDIC;
skip_all_without_perlio();
- skip_all_without_extension('Encode');
}
use strict;
BEGIN {
require './test.pl';
- skip_all_if_miniperl("no dynamic loading on miniperl, no Encode");
+ skip_all_without_dynamic_extension('Encode');
skip_all("EBCDIC") if $::IS_EBCDIC;
skip_all_without_perlio();
- skip_all_without_extension('Encode');
}
use strict;