summaryrefslogtreecommitdiff
path: root/t/io
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-04-14 20:02:04 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-04-14 20:02:04 +0000
commit491abfa0d3660abd254acccb4ce25347d4e51152 (patch)
treee980dc577ca5ddaf4e962b6647f914bb9b077833 /t/io
parenta28cd5c9762e7188f862844ca6b6674b912f33f8 (diff)
downloadperl-491abfa0d3660abd254acccb4ce25347d4e51152.tar.gz
Skip as early as possible if no perlio since the
use open would be compile-time. p4raw-id: //depot/perl@19208
Diffstat (limited to 't/io')
-rw-r--r--t/io/layers.t11
1 files changed, 8 insertions, 3 deletions
diff --git a/t/io/layers.t b/t/io/layers.t
index 1596d72f07..15359c1741 100644
--- a/t/io/layers.t
+++ b/t/io/layers.t
@@ -4,15 +4,19 @@ 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;
+ }
}
plan tests => 43;
use Config;
-{
- skip("This perl does not have perlio and Encode", 43)
- unless $Config{useperlio} && " $Config{extensions} " =~ / Encode /;
+SKIP: {
+ skip("This perl does not have Encode", 43)
+ unless " $Config{extensions} " =~ / Encode /;
sub check {
my ($result, $expected, $id) = @_;
@@ -98,6 +102,7 @@ use Config;
{
use open(IN => ":crlf", OUT => ":encoding(cp1252)");
+
open F, "<afile";
open G, ">afile";