Enhance the srctop, bldtop, data and result functions to check the result
authorRichard Levitte <levitte@openssl.org>
Tue, 7 Sep 2021 08:00:12 +0000 (10:00 +0200)
committerRichard Levitte <levitte@openssl.org>
Thu, 9 Sep 2021 09:25:18 +0000 (11:25 +0200)
commit2fe2279d1f3bbfa934e432d4f2c3a7e6a6b0f958
treefa4364f4b6cb868700ac2a66059c1e84d354bec7
parent5ecf10a0d2fb1c858b25afd5e48eafe6ef76edd4
Enhance the srctop, bldtop, data and result functions to check the result

This affects bldtop_dir, bldtop_file, srctop_dir, srctop_file,
data_dir, data_file, result_dir, and result_file.  They are all
enhanced to check that the resulting path really is a directory or a
file.  They only do this if the path exists.

This allows the tests to catch if these functions are used
incorrectly, even on systems where the syntax for directories and
files is the same.

Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16523)
util/perl/OpenSSL/Test.pm