Assorted 2.15 fixes.
[p5sagit/p5-mst-13.2.git] / ext / Encode / t / perlio.t
index d3161cc..012bbe6 100644 (file)
@@ -122,7 +122,10 @@ for my $src (sort keys %e) {
                dump2file("$pfile.$seq", $dtext);
            }
        }
-       $DEBUG or unlink ($sfile, $pfile);
+     if ( ! $DEBUG ) {
+            1 while unlink ($sfile);
+            1 while unlink ($pfile);
+        }
     }
 }
 
@@ -164,7 +167,7 @@ SKIP:{
        open  $fh, ">:encoding($utf_nobom)", $sfile or die "$sfile : $!";
        print $fh $str;
        close $fh;
-       open my $fh, "<:raw", $sfile or die "$sfile : $!";
+       open my $fh, "<", $sfile or die "$sfile : $!";
        read $fh, my $cmp, -s $sfile;
        close $fh;
        use bytes ();