testutil: ensure good treatment of argv on non-Unix platforms
authorRichard Levitte <levitte@openssl.org>
Sun, 3 Mar 2019 09:27:10 +0000 (10:27 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 5 Mar 2019 07:53:19 +0000 (08:53 +0100)
commitce506d27ab5e7d17dfe3fe649768a0d19b6c86ee
treec61515908e1be0432bf18a0fcb6709edae3ecf61
parent9b542d72d2e7d4893a11b2e87628d9ac8637b954
testutil: ensure good treatment of argv on non-Unix platforms

From a Unix point of view, some other platform families have certain
quirks.  Windows command prompt doesn't expand globs into actual file
names, so we must do this.  VMS has some oddity with argv pointer size
that can cause crashes if you're not careful (by copying it to a less
surprising pointer size array).

The fixups already exist and are used in the apps/ code.  However, the
testutil code started using the opt routines from apps/ without
including the non-Unix fixups.  This change fixes that.

For VMS' sake, libtestutil gets an app_malloc() shim, to avoid sucking
in all of apps/apps.c.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/8381)
apps/include/apps.h
apps/include/platform.h [new file with mode: 0644]
apps/vms_decc_argv.c
test/build.info
test/testutil/apps_mem.c [new file with mode: 0644]
test/testutil/driver.c