Fix exit code for VMS in util/wrap.pl and test/run_tests.pl
authorRichard Levitte <levitte@openssl.org>
Wed, 16 Jun 2021 04:48:12 +0000 (06:48 +0200)
committerMatt Caswell <matt@openssl.org>
Thu, 17 Jun 2021 07:24:13 +0000 (08:24 +0100)
commita515c8256e22eb8427a43ea4f709794ce2c36414
tree85bbef245f8486ef720428e0ef5366c475da0fd3
parentfd6d0c5ac4bc685b4021824fa56fcec245f08884
Fix exit code for VMS in util/wrap.pl and test/run_tests.pl

The exit code for VMS is a bit tricky, and while perl translates the
VMS status code from a typical C program to posix terms, it doesn't
automatically translate its exit code into the typical C program VMS
status code.  Perl scripts are recommended to do so explicitly.

Therefore, we make util/wrap.pl and test/run_tests.pl simulate the
typical C program VMS status code for all non-zero exit codes, except
we give them all the error severity (according to the VMS C library
reference manual, exit codes 2 and above are treated as success...).

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15787)
test/run_tests.pl
util/wrap.pl