aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2019-04-15 18:13:44 -0700
committerNoah Misch <noah@leadboat.com>2019-04-15 18:13:47 -0700
commit76097b42ae03019784465c29d779c7324bc877fe (patch)
tree84d79c56b4477570e7e593e6a30b88ea8c0e316b
parent0d68ad3fc28377d36a3e1dd8b0e2ff47e693e552 (diff)
downloadpostgresql-76097b42ae03019784465c29d779c7324bc877fe.tar.gz
postgresql-76097b42ae03019784465c29d779c7324bc877fe.zip
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
-rw-r--r--src/test/recovery/t/017_shm.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/recovery/t/017_shm.pl b/src/test/recovery/t/017_shm.pl
index f89d53a8793..f16821d51fe 100644
--- a/src/test/recovery/t/017_shm.pl
+++ b/src/test/recovery/t/017_shm.pl
@@ -153,7 +153,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,