Need to skip test 7 if perl built without the PerlIO::scalar extension
authorNicholas Clark <nick@ccl4.org>
Fri, 18 Jun 2004 08:59:01 +0000 (08:59 +0000)
committerNicholas Clark <nick@ccl4.org>
Fri, 18 Jun 2004 08:59:01 +0000 (08:59 +0000)
p4raw-id: //depot/perl@22947

t/io/crlf.t

index d6f3fc3..f59b245 100644 (file)
@@ -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";