develooper Front page | perl.perl5.porters | Postings from September 2001

Re: Question about PERLIO

Thread Previous | Thread Next
From:
Michael G Schwern
Date:
September 26, 2001 10:13
Subject:
Re: Question about PERLIO
Message ID:
20010926131319.A13649@blackrider
On Wed, Sep 26, 2001 at 06:44:13PM +0200, Abe Timmerman wrote:
> ..\lib/English.t    1   256    54    1   1.85%  48
> 
> not ok 48 - %OS_ERROR (ENOENT should be set)
> #     Failed test (..\lib\English.t at line 128)
> 
> This test involves %OS_ERROR (%!) for which I can't find an entry in perlvar.pod

%! is an Errno.pm thing.

Could you slip this into English.t after that test on line 128 and
show what you get?


--- lib/English.t	2001/09/26 17:11:26	1.1
+++ lib/English.t	2001/09/26 17:12:10
@@ -127,6 +127,9 @@
 is( $OS_ERROR, $ERRNO, '$OS_ERROR' );
 ok( $OS_ERROR{ENOENT}, '%OS_ERROR (ENOENT should be set)' );
 
+while( my($k, $v) = each %OS_ERROR ) { print STDOUT "# $k - $v\n" if $v }
+
+
 package B;
 
 use English;


-- 

Michael G. Schwern   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <perl-qa@perl.org>	     Kwalitee Is Job One
<mendel>	 ScHWeRnsChweRN    sChWErN   SchweRN  SCHWErNSChwERnsCHwERN    
  sChWErn  ScHWeRn	schweRn 	  sCHWErN	    schWeRn    scHWeRN 
   SchWeRN	scHWErn SchwErn       scHWErn	    ScHweRN	  sChwern      
scHWerN        scHWeRn		 scHWerN	ScHwerN       SChWeRN scHWeRn  
	SchwERNschwERn	      SCHwern  sCHWErN	 SCHWErN	   sChWeRn 

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