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

Re: FreeBSD thread vs. encoding.pm

Thread Previous | Thread Next
From:
Enache Adrian
Date:
April 21, 2003 14:09
Subject:
Re: FreeBSD thread vs. encoding.pm
Message ID:
20030421211014.GA881@ratsnest.hole
On Tue, Apr 22, 2003 at 04:19:42AM +0900, Dan Kogai wrote:
> It LOOKS like an old story and very likely related, but it is 
> DEFINITELY DIFFERENT.
...
> >I suggested you to put
> >
> >close STDOUT unless $^O eq 'freebsd';
> 
> And I instead relocated "close STDOUT" AFTER the tests so this will not 
> do any good this time.


ratsnest# perl harness ../ext/Encode/t/enc_module.t
../ext/Encode/t/enc_module....Parameter to use lib must be directory, not file at ../ext/Encode/t/enc_module.t line 22
../ext/Encode/t/enc_module....NOK 1#     Failed test (../ext/Encode/t/enc_module.t at line 44)
#          got: '1'
#     expected: '0'
# Looks like you planned 3 tests but only ran 1.
../ext/Encode/t/enc_module....dubious                                        
        Test returned status 3 (wstat 768, 0x300)
DIED. FAILED tests 1-3
        Failed 3/3 tests, 0.00% okay
Failed Test                  Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
../ext/Encode/t/enc_module.t    3   768     3    5 166.67%  1-3
Failed 1/1 test scripts, 0.00% okay. 3/3 subtests failed, 0.00% okay.


ratsnest# perl -pe 's/close STDOUT/$& unless \$^O eq q{freebsd}/' -i ../ext/Encode/t/enc_module.t 


ratsnest# perl harness ../ext/Encode/t/enc_module.t                             ../ext/Encode/t/enc_module....Parameter to use lib must be directory, not file at ../ext/Encode/t/enc_module.t line 22
../ext/Encode/t/enc_module....ok                                             
All tests successful.
Files=1, Tests=3,  0 wallclock secs ( 0.62 cusr +  0.04 csys =  0.66 CPU)


ratsnest# uname -a
FreeBSD ratsnest.hole 5.0-CURRENT FreeBSD 5.0-CURRENT #2: Tue Apr 15 15:15:34 EEST 2003     root@ratsnest.hole:/opt/tmp/CUBATAO  i386


ratsnest# perl -V
Summary of my perl5 (revision 5.0 version 9 subversion 0 patch 19262) configuration:
[snippped]

Works the same in a 4.8 jail. The first works also OK on a 4.4 jail.
( man 8 jail)

And I have a patch for you:

--- /arc/bleadperl/ext/Encode/AUTHORS	Mon Mar 31 14:17:11 2003
+++ ext/Encode/AUTHORS	Mon Apr 21 23:55:52 2003
@@ -17,7 +17,6 @@
 Craig A. Berry			<craigberry@mac.com>
 Dan Kogai			<dankogai@dan.co.jp>
 Elizabeth Mattijsen             <liz@dijkmat.nl>
-Enache Adrian                   <enache@rdslink.ro>
 Gerrit P. Haase			<gp@familiehaase.de>
 Graham Barr                     <gbarr@pobox.com>
 Gurusamy Sarathy		<gsar@activestate.com>

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