From fe47a2b44e292b6b622f252d77824e344488f217 Mon Sep 17 00:00:00 2001 From: Ayush Tiwari Date: Sun, 11 Oct 2026 10:33:20 +0000 Subject: [PATCH v1] Avoid stdin writes in the shmem startup failure test The final single-user test expects postgres to fail during startup, before it reads any SQL. Sending the preceding test's queries can race with that exit and make IPC::Run abort on a broken pipe. Pass empty input instead, keeping the exit-status and error-message checks unchanged. Reported-by: Alexander Lakhin --- 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"); -- 2.43.0