At 8:30 PM -0400 8/27/01, Michael G Schwern wrote:

>So rather than try and fight VMS, I'll just special case it.  I have
>three basic exit conditions.
>
>1)  All tests successful.
>2)  Failed some tests.
>3)  Test died.
>
>So what would be sensible exit codes for those under VMS?  Ok, failed
>normally and failed abnormally.

Thanks for bearing with us on this.  I think that should probably be:

1.) 0, the generic success value
2.) 1, the generic failure value
3.) Any failure status that is not the same severity as generic
failure; I'd say 2 would do as well as anything.  The following may
be helpful:

$ perl -e "$x=system(qq/$^X -e ""exit $ARGV[0]""/); print qq/$x\t/,$x >> 8;" 0
0       0
$ perl -e "$x=system(qq/$^X -e ""exit $ARGV[0]""/); print qq/$x\t/,$x >> 8;" 1
%SYSTEM-F-ABORT, abort
1024    4
$ perl -e "$x=system(qq/$^X -e ""exit $ARGV[0]""/); print qq/$x\t/,$x >> 8;" 2
%NONAME-E-NOMSG, Message number 00000002
512     2

-- 
____________________________________________
Craig A. Berry                  
mailto:[EMAIL PROTECTED]

"Literary critics usually know what they're
talking about. Even if they're wrong."
        -- Perl creator Larry Wall

Reply via email to