From 4dc903947e10b6f6de1de31c31e701d2a4d9516a Mon Sep 17 00:00:00 2001 From: Noah Misch Date: Mon, 15 Apr 2019 18:13:44 -0700 Subject: [PATCH] Don't write to stdin of a test process that could have already exited. Instead, close that stdin. Per buildfarm member conchuela. Back-patch to 9.6, where the test was introduced. Discussion: https://postgr.es/m/26478.1555373328@sss.pgh.pa.us --- src/test/recovery/t/017_shm.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/recovery/t/017_shm.pl b/src/test/recovery/t/017_shm.pl index 633606b2be..70b789f704 100644 --- a/src/test/recovery/t/017_shm.pl +++ b/src/test/recovery/t/017_shm.pl @@ -151,7 +151,7 @@ like(slurp_file($gnat->logfile), my $single_stderr; ok( !run_log( [ 'postgres', '--single', '-D', $gnat->data_dir, 'template1' ], - '<', \('SELECT 1 + 1'), '2>', \$single_stderr), + '<', \undef, '2>', \$single_stderr), 'live query blocks --single'); print STDERR $single_stderr; like($single_stderr, $pre_existing_msg, -- 2.40.0