Fix certificate paths to use perl2host
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 1 Dec 2021 13:59:51 +0000 (14:59 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 1 Dec 2021 13:59:51 +0000 (14:59 +0100)
commitc3b34a0ff4a00d00d6ea364c85201e155ca7ef6b
treeb60e76b0fcf58ae3f152349f3a06e67b8ceca8ee
parent81fca310b38e7808dff9c01a26564e8f2db10893
Fix certificate paths to use perl2host

Commit c113d8ad50 moved the copying of certificates into a temporary path
for the duration of the tests, instead of using the source tree. This broke
the tests on msys as the absolute path wasn't adapted for the msys platform.
Ensure to convert the path with perl2host before copying and passing in the
connection string.

While there also make certificate copying error handling uniform across all
the test suites.

Discussion: https://postgr.es/m/YacT3tm97xziSUFw@paquier.xyz
src/test/ssl/t/001_ssltests.pl
src/test/ssl/t/002_scram.pl
src/test/ssl/t/003_sslinfo.pl