summaryrefslogtreecommitdiff
path: root/t/uni/chomp.t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2011-03-07 16:31:05 +0000
committerNicholas Clark <nick@ccl4.org>2011-03-07 16:31:05 +0000
commitb5b7b9adf9fbdc829b735710863e92d10a0676b8 (patch)
treefd47c5c0d75f36d53d7ab34401070a9526da0370 /t/uni/chomp.t
parente05e9c3d01e748834948a3f9f9f62c9e72295130 (diff)
downloadperl-b5b7b9adf9fbdc829b735710863e92d10a0676b8.tar.gz
Simplify the startup skip logic of tests in t/uni.
Use the various skip_all*() functions in test.pl to express the desired intent.
Diffstat (limited to 't/uni/chomp.t')
-rw-r--r--t/uni/chomp.t22
1 files changed, 4 insertions, 18 deletions
diff --git a/t/uni/chomp.t b/t/uni/chomp.t
index 6aef50c17c..1292fb690b 100644
--- a/t/uni/chomp.t
+++ b/t/uni/chomp.t
@@ -1,25 +1,11 @@
#!./perl -w
BEGIN {
- require Config; import Config;
- if ($Config{'extensions'} !~ /\bEncode\b/) {
- print "1..0 # Skip: Encode was not built\n";
- exit 0;
- }
- if (ord("A") == 193) {
- print "1..0 # Skip: EBCDIC\n";
- exit 0;
- }
- unless (PerlIO::Layer->find('perlio')){
- print "1..0 # Skip: PerlIO required\n";
- exit 0;
- }
- if ($ENV{PERL_CORE_MINITEST}) {
- print "1..0 # Skip: no dynamic loading on miniperl, no Encode\n";
- exit 0;
- }
-
require './test.pl';
+ skip_all_if_miniperl("no dynamic loading on miniperl, no Encode");
+ skip_all("EBCDIC") if $::IS_EBCDIC;
+ skip_all_without_perlio();
+ skip_all_without_extension('Encode');
}
use strict;