From: Nicholas Clark Date: Fri, 18 Jun 2004 08:59:01 +0000 (+0000) Subject: Need to skip test 7 if perl built without the PerlIO::scalar extension X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=238210bb9f683911a1cbe4d2e8f1925ecfb2e350;p=p5sagit%2Fp5-mst-13.2.git Need to skip test 7 if perl built without the PerlIO::scalar extension p4raw-id: //depot/perl@22947 --- diff --git a/t/io/crlf.t b/t/io/crlf.t index d6f3fc3..f59b245 100644 --- a/t/io/crlf.t +++ b/t/io/crlf.t @@ -34,7 +34,8 @@ if (find PerlIO::Layer 'perlio') { { skip("miniperl can't rely on loading PerlIO::scalar") if $ENV{PERL_CORE_MINITEST}; - eval 'PerlIO::scalar'; + skip("no PerlIO::scalar") unless $Config{extensions} =~ /PerlIO::scalar/; + require PerlIO::scalar; my $fcontents = join "", map {"$_\015\012"} "a".."zzz"; open my $fh, "<:crlf", \$fcontents; local $/ = "xxx";