diff options
author | Nicholas Clark <nick@ccl4.org> | 2011-03-07 13:33:48 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2011-03-07 13:33:48 +0000 |
commit | e05e9c3d01e748834948a3f9f9f62c9e72295130 (patch) | |
tree | f644689e9b3c8ceef84dc973c3866bf1508abc94 /t/run/switchC.t | |
parent | b6ae43b72863e12dd1cfc7eb414a05d61a20d8bd (diff) | |
download | perl-e05e9c3d01e748834948a3f9f9f62c9e72295130.tar.gz |
Add skip_all_without_perlio() to test.pl, and use it in 8 tests.
It's a common idiom in the tests. This makes it easier to find, read, and
remove.
Diffstat (limited to 't/run/switchC.t')
-rw-r--r-- | t/run/switchC.t | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/t/run/switchC.t b/t/run/switchC.t index 9297286c69..5223b001c8 100644 --- a/t/run/switchC.t +++ b/t/run/switchC.t @@ -7,10 +7,7 @@ BEGIN { @INC = '../lib'; require "./test.pl"; - unless (find PerlIO::Layer 'perlio') { - print "1..0 # Skip: not perlio\n"; - exit 0; - } + skip_all_without_perlio(); skip_all_if_miniperl('-C and $ENV{PERL_UNICODE} are disabled on miniperl'); } |