diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-03-07 11:00:53 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-03-07 11:49:10 +0000 |
commit | 62e452a49a5581bd1de0a5f26274253ee67aa67e (patch) | |
tree | 61857096cbec3ec1cef314f6ef2dbc998976fef8 /t/run | |
parent | 5d8ab95357a99a13e919b0e5c19f9a7abb06167d (diff) | |
download | perl-62e452a49a5581bd1de0a5f26274253ee67aa67e.tar.gz |
Refactor 6 tests in t/op and t/run to use skip_all_if_miniperl().
Diffstat (limited to 't/run')
-rw-r--r-- | t/run/switchC.t | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/t/run/switchC.t b/t/run/switchC.t index b6231ca6d0..9297286c69 100644 --- a/t/run/switchC.t +++ b/t/run/switchC.t @@ -5,19 +5,15 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; + require "./test.pl"; + unless (find PerlIO::Layer 'perlio') { print "1..0 # Skip: not perlio\n"; exit 0; } - if ($ENV{PERL_CORE_MINITEST}) { - print "1..0 # Skip : -C and \$ENV{PERL_UNICODE} are disabled on miniperl\n"; - exit 0; - } - + skip_all_if_miniperl('-C and $ENV{PERL_UNICODE} are disabled on miniperl'); } -BEGIN { require "./test.pl"; } - plan(tests => 13); my $r; |