summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Misch2019-04-16 01:13:44 +0000
committerNoah Misch2019-04-16 01:13:44 +0000
commite12a4726127b90b8fc5e75690fe4527f1866412d (patch)
tree6afd2fac761c861c1eb165cd56ce8853dd5e0955
parentdde7fb7836c7428f79cb3cd88ca5febb802e767e (diff)
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/[email protected]
-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 f89d53a879..f16821d51f 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,