summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>2002-04-28 08:57:54 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>2002-04-28 08:57:54 +0000
commit6b5da1a3dd326d0fe0f59ec1ea7b9b5d72b2a49e (patch)
treeb1a08a246949f6eaa2c13a854f21f79da587517c /t
parent24f59afc531955e5c3768c6023fb2ac247d6939d (diff)
downloadperl-6b5da1a3dd326d0fe0f59ec1ea7b9b5d72b2a49e.tar.gz
Use (file PerlIO::Layer 'perlio') rather than $Config{useperlio}
as gate on layer tests which fail on -Dusesfio (ext/XS/Typemap/Typemap.t still fails on -Dusesfio) p4raw-id: //depot/perlio@16245
Diffstat (limited to 't')
-rw-r--r--t/io/binmode.t8
-rw-r--r--t/io/crlf.t2
2 files changed, 5 insertions, 5 deletions
diff --git a/t/io/binmode.t b/t/io/binmode.t
index 4991d5e92f..3775290bf5 100644
--- a/t/io/binmode.t
+++ b/t/io/binmode.t
@@ -11,20 +11,20 @@ require "test.pl";
plan(tests => 8);
ok( binmode(STDERR), 'STDERR made binary' );
-if ($Config{useperlio}) {
+if (find PerlIO::Layer 'perlio') {
ok( binmode(STDERR, ":unix"), ' with unix discipline' );
} else {
- ok(1, ' skip unix discipline for -Uuseperlio' );
+ ok(1, ' skip unix discipline without PerlIO layers' );
}
ok( binmode(STDERR, ":raw"), ' raw' );
ok( binmode(STDERR, ":crlf"), ' and crlf' );
# If this one fails, we're in trouble. So we just bail out.
ok( binmode(STDOUT), 'STDOUT made binary' ) || exit(1);
-if ($Config{useperlio}) {
+if (find PerlIO::Layer 'perlio') {
ok( binmode(STDOUT, ":unix"), ' with unix discipline' );
} else {
- ok(1, ' skip unix discipline for -Uuseperlio' );
+ ok(1, ' skip unix discipline without PerlIO layers' );
}
ok( binmode(STDOUT, ":raw"), ' raw' );
ok( binmode(STDOUT, ":crlf"), ' and crlf' );
diff --git a/t/io/crlf.t b/t/io/crlf.t
index 20d278fbf2..0968b3653d 100644
--- a/t/io/crlf.t
+++ b/t/io/crlf.t
@@ -14,7 +14,7 @@ END {
unlink($file);
}
-if ($Config{useperlio}) {
+if (find PerlIO::Layer 'perlio') {
plan(tests => 6);
ok(open(FOO,">:crlf",$file));
ok(print FOO 'a'.((('a' x 14).qq{\n}) x 2000) || close(FOO));