mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-03-19 10:37:01 +08:00
ssl: Skip passphrase reload tests in EXEC_BACKEND builds
SSL password command reloading must be enabled on Windows and in EXEC_BACKEND builds due to them always reloading the context. The new tests in commit 4f433025 skipped under Windows but missed the EXEC_BACKEND check. Reported by buildfarm member culicidae. Author: Daniel Gustafsson <daniel@yesql.se> Discussion: https://postgr.es/m/CAOYmi+kXmCCgBWffzmSjaNhME5rD=gjyc_OP1FeWQTw2MmSNjg@mail.gmail.com
This commit is contained in:
@ -47,6 +47,9 @@ $ENV{PGHOST} = $node->host;
|
||||
$ENV{PGPORT} = $node->port;
|
||||
$node->start;
|
||||
|
||||
my $exec_backend = $node->safe_psql('postgres', 'SHOW debug_exec_backend');
|
||||
chomp($exec_backend);
|
||||
|
||||
$ssl_server->configure_test_server_for_ssl($node, $SERVERHOSTADDR,
|
||||
$SERVERHOSTCIDR, 'trust');
|
||||
|
||||
@ -320,9 +323,10 @@ unlike(
|
||||
|
||||
SKIP:
|
||||
{
|
||||
# Passphrase reloads must be enabled on Windows to succeed even without a
|
||||
# restart
|
||||
skip "Passphrase command reload required on Windows", 1 if ($windows_os);
|
||||
# Passphrase reloads must be enabled on Windows (and EXEC_BACKEND) to
|
||||
# succeed even without a restart
|
||||
skip "Passphrase command reload required on Windows and EXEC_BACKEND", 1
|
||||
if ($windows_os || $exec_backend =~ /on/);
|
||||
|
||||
$node->connect_ok(
|
||||
"$connstr sslrootcert=ssl/root+server_ca.crt sslmode=require host=localhost",
|
||||
|
||||
Reference in New Issue
Block a user