15-test_out_option: Refactor and don't test directory write on VMS
authorRichard Levitte <levitte@openssl.org>
Thu, 26 Apr 2018 15:41:46 +0000 (17:41 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 26 Apr 2018 19:19:49 +0000 (21:19 +0200)
commit6fb7b08987b57a3a90d426fcad6ca24e6a11c705
tree68de46a1a83a4c9ab1c577961e356d27f1342e00
parentfe1128dc2a6e7aae9010cf6595c78245e0eefd46
15-test_out_option: Refactor and don't test directory write on VMS

To my surprise, it turns out that on OpenVMS, opening './' (which
is translated to '[]') for writing actually creates a file, '[].'.
On OpenVMS, this is a perfectly valid file with no name or extension,
just the delimiter between the two.

Because of the mess the exception would generate in the test recipe,
it gets refactored again, to clearly separate each test inside it,
and use skips to avoid some of them (that makes it clear that they are
skipped and why, when running the recipe).

Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6100)
test/recipes/15-test_out_option.t