From e87ab5049deb6ea2fe26d4d8395d3f3b7d496bfc Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Wed, 18 Mar 2026 22:59:57 +0100 Subject: [PATCH] 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 Discussion: https://postgr.es/m/CAOYmi+kXmCCgBWffzmSjaNhME5rD=gjyc_OP1FeWQTw2MmSNjg@mail.gmail.com --- src/test/ssl/t/004_sni.pl | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/test/ssl/t/004_sni.pl b/src/test/ssl/t/004_sni.pl index 4e06475b125..ae4b1a4c803 100644 --- a/src/test/ssl/t/004_sni.pl +++ b/src/test/ssl/t/004_sni.pl @@ -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",