summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/t/io/crlf.t
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/perl/t/io/crlf.t')
-rw-r--r--gnu/usr.bin/perl/t/io/crlf.t7
1 files changed, 4 insertions, 3 deletions
diff --git a/gnu/usr.bin/perl/t/io/crlf.t b/gnu/usr.bin/perl/t/io/crlf.t
index 2ee7b831912..be514003a5c 100644
--- a/gnu/usr.bin/perl/t/io/crlf.t
+++ b/gnu/usr.bin/perl/t/io/crlf.t
@@ -32,9 +32,10 @@ if (find PerlIO::Layer 'perlio') {
SKIP:
{
- eval 'use PerlIO::scalar';
- skip(q/miniperl cannnot load PerlIO::scalar/)
- if $@ =~ /dynamic loading not available/;
+ skip("miniperl can't rely on loading PerlIO::scalar")
+ if $ENV{PERL_CORE_MINITEST};
+ skip("no PerlIO::scalar") unless $Config{extensions} =~ m!\bPerlIO/scalar\b!;
+ require PerlIO::scalar;
my $fcontents = join "", map {"$_\015\012"} "a".."zzz";
open my $fh, "<:crlf", \$fcontents;
local $/ = "xxx";