S_utf16_textfilter() was not returning EOF correctly in some situations.
[p5sagit/p5-mst-13.2.git] / lib / subs.t
index 7952c20..709fcfa 100644 (file)
@@ -15,10 +15,7 @@ print "1..", scalar @prgs, "\n";
 my $Is_VMS = $^O eq 'VMS';
 my $Is_MSWin32 = $^O eq 'MSWin32';
 my $Is_NetWare = $^O eq 'NetWare';
-my $Is_MacOS = $^O eq 'MacOS';
-my $tmpfile = tempfile();
 my $i = 0 ;
-END {  if ($tmpfile) { 1 while unlink $tmpfile} }
 
 for (@prgs){
     my $switch = "";
@@ -44,6 +41,7 @@ for (@prgs){
        shift @files ;
        $prog = shift @files ;
     }
+    my $tmpfile = tempfile();
     open TEST, ">$tmpfile";
     print TEST $prog,"\n";
     close TEST;
@@ -53,8 +51,6 @@ for (@prgs){
                      `.\\perl -I../lib $switch $tmpfile 2>&1` :
                  $Is_NetWare ?
                      `perl -I../lib $switch $tmpfile 2>&1` :
-                 $Is_MacOS ?
-                     `$^X -I::lib -MMac::err=unix $switch $tmpfile` :
                   `./perl $switch $tmpfile 2>&1`;
     my $status = $?;
     $results =~ s/\n+$//;