On Tue, Aug 28, 2001 at 01:12:28PM -0500, Craig A. Berry wrote:
> So, setting $? to a value doesn't do the same thing as exiting with that 
> value, as the following example illustrates:

Crap.  Well, better than nothing.


> This behavior can be overridden by the "use vmsish 'status'" pragma but 
> that's not available on other platforms and can't be conditionalized because 
> it does its thing at compile time.  And as I understand it, you have to use 
> $? rather than exit() because the latter misbehaves when called in an END 
> block.

Misbehaves violently, yeah.

In certain versions of perl I can use exit directly.  Would it be
worth the trouble to add in code so Test::Simple uses exit() instead
of $? on versions of Perl where it can do it?  I'm just afraid that
the versions that work on my end won't be the same as on yours.


Ok, try this:
http://www.pobox.com/~schwern/src/Test-Simple-0.16.tar.gz


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl6 Quality Assurance     <[EMAIL PROTECTED]>       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 

Reply via email to