Re: Cygwin PerlIO.t failing
Stas Bekman [Wed, 27 Mar 2002 01:34:11 +0000 (09:34 +0800)]
Message-ID: <3CA0B113.1070800@stason.org>

p4raw-id: //depot/perl@15533

ext/PerlIO/PerlIO.t

index 457df83..d3de705 100644 (file)
@@ -113,6 +113,7 @@ ok(close($utffh));
         #close STDOUT;
         my $status = open(STDOUT,">",\$var);
         my $error = "$!" unless $status; # remember the error
+       close STDOUT unless $status;
         open STDOUT,  ">&OLDOUT" or die "cannot dup OLDOUT: $!";
         print "# $error\n" unless $status;
         # report after STDOUT is restored