develooper Front page | perl.perl5.porters | Postings from March 2003

the enc_module.t failure with threaded Perl on FreeBSD

Thread Previous | Thread Next
From:
Enache Adrian
Date:
March 22, 2003 12:55
Subject:
the enc_module.t failure with threaded Perl on FreeBSD
Message ID:
20030322204918.GA794@ratsnest.hole
... actually smells like a user threads issue rather tha a Perl bug.

Commenting out the close STDOUT kills the test failure on my box.

--------------------------------------------------------------
--- /arc/perl-current/ext/Encode/t/enc_module.t	Fri Mar 14 07:33:11 2003
+++ ./ext/Encode/t/enc_module.t	Sat Mar 22 22:33:21 2003
@@ -38,7 +38,7 @@
 print $obj->str, "\n";
 $obj->set("�ƥ���ʸ����");
 print $obj->str, "\n";
-close STDOUT;
+#close STDOUT;
 
 my $cmp = compare_text($file0, $file1);
 is($cmp, 0, "encoding vs. STDOUT");
--------------------------------------------------------------


Have a look please at this small script:
-------------------------
#! perl -l
open STDOUT, ">a";
print "a";
close STDOUT;
open FH, "<a";
print STDERR <FH>;
-------------------------

it won't print nothing with a threaded perl on FreeBSD 5.0 :(
(dunno about FreeBSD 4.x, {Net,Open}BSD, Darwin)

Regards
Adi

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About