Integrate:
[p5sagit/p5-mst-13.2.git] / t / io / crlf.t
index 484596b..084be21 100644 (file)
@@ -30,8 +30,12 @@ if (find PerlIO::Layer 'perlio') {
  { local $/; $text = <FOO> }
  is(count_chars($text, "\015\012"), 2000);
 
+ SKIP:
  {
-  my $fcontents = join "", map {"$_\r\n"} "a".."zzz";
+  eval 'use PerlIO::scalar';
+  skip(q/miniperl cannnot load PerlIO::scalar/)
+      if $@ =~ /dynamic loading not available/;
+  my $fcontents = join "", map {"$_\015\012"} "a".."zzz";
   open my $fh, "<:crlf", \$fcontents;
   local $/ = "xxx";
   local $_ = <$fh>;