diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-03-06 22:14:23 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-03-06 22:48:16 +0000 |
commit | bad1036f7c06bd513a9312c5265dcaa0e82dd8b3 (patch) | |
tree | a81d90dcea286aad1810fbcf5c89a1ad5ce6e6c5 /t/io | |
parent | 7465bc322e5c5dcbd256bb5fbdd3135163fb3dc1 (diff) | |
download | perl-bad1036f7c06bd513a9312c5265dcaa0e82dd8b3.tar.gz |
Tidy perlio_open.t, by using test.pl skip_all* functions where appropriate.
This reduces the startup boilerplate code by more than half.
Diffstat (limited to 't/io')
-rw-r--r-- | t/io/perlio_open.t | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/t/io/perlio_open.t b/t/io/perlio_open.t index 5f6a65cc10..7bd9a70350 100644 --- a/t/io/perlio_open.t +++ b/t/io/perlio_open.t @@ -3,20 +3,10 @@ BEGIN { chdir 't' if -d 't'; @INC = '../lib'; - if ($ENV{PERL_CORE_MINITEST}) { - print "1..0 # Skip: no Fcntl under miniperl\n"; - exit 0; - } - unless (find PerlIO::Layer 'perlio') { - print "1..0 # Skip: not perlio\n"; - exit 0; - } - use Config; - unless (" $Config{extensions} " =~ / Fcntl /) { - print "1..0 # Skip: no Fcntl (how did you get this far?)\n"; - exit 0; - } require './test.pl'; + skip_all('not perlio') unless (find PerlIO::Layer 'perlio'); + skip_all_if_miniperl("no dynamic loading on miniperl, no Fcntl"); + skip_all_without_extension('Fcntl'); # how did you get this far? } use strict; |