Change 11611 by jhi@alpha on 2001/08/08 02:28:58

        Subject: [PATCH perl@11597] fix t/run/exit.t for VMS
        From: "Craig A. Berry" <[EMAIL PROTECTED]>
        Date: Tue, 07 Aug 2001 22:27:47 -0500
        Message-Id: <5.1.0.14.0.20010806105326.02d22298@exchi01>

Affected files ...

... //depot/perl/t/run/exit.t#5 edit

Differences ...

==== //depot/perl/t/run/exit.t#5 (text) ====
Index: perl/t/run/exit.t
--- perl/t/run/exit.t.~1~       Tue Aug  7 20:45:06 2001
+++ perl/t/run/exit.t   Tue Aug  7 20:45:06 2001
@@ -55,5 +55,13 @@
   is( $exit >> 8, 4,             'fatal error exit' );
 }
 
-$exit = run('END { $? = 42 }');
-is( $exit >> 8, 42,             'Changing $? in END block' );
+$exit_arg = 42;
+$exit = run("END { \$? = $exit_arg }");
+
+# On VMS, in the child process the actual exit status will be SS$_ABORT, 
+# which is what you get from any non-zero value of $? that has been 
+# dePOSIXified by STATUS_POSIX_SET.  In the parent process, all we'll 
+# see are the severity bits (0-2) shifted left by 8.
+$exit_arg = (44 & 7) if $^O eq 'VMS';  
+
+is( $exit >> 8, $exit_arg,             'Changing $? in END block' );
End of Patch.

Reply via email to