From 36a56229765c405b7e3655c3cf3a4fec2c0bc2b0 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Mon, 12 Oct 2026 08:26:08 +0300 Subject: [PATCH] Don't write to postgres's stdin in shmem startup failure test The single-user test expects postgres to fail during startup, before processing any queries. Sending the preceding test's queries can race with that exit and make IPC::Run abort on a broken pipe. To fix, pass empty input instead. Author: Ayush Tiwari Reported-by: Alexander Lakhin Discussion: https://www.postgresql.org/message-id/e87c8fef-e254-441e-b889-bbcbd5afea7f@gmail.com Backpatch-through: 19 --- src/test/modules/test_shmem/t/001_late_shmem_alloc.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/modules/test_shmem/t/001_late_shmem_alloc.pl b/src/test/modules/test_shmem/t/001_late_shmem_alloc.pl index 0e14e7b15d0..7f252af9987 100644 --- a/src/test/modules/test_shmem/t/001_late_shmem_alloc.pl +++ b/src/test/modules/test_shmem/t/001_late_shmem_alloc.pl @@ -215,7 +215,7 @@ SELECT test_shmem_register('test_shmem after startup', -1, 3); '-c' => 'test_shmem.area_size=-1', 'postgres' ], - '<' => \$queries, + '<' => \'', '2>' => \$startup_stderr); ok(!$result, "unknown-size request during single-user startup is rejected");