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
This commit is contained in:
Noah Misch 2019-04-15 18:13:44 -07:00
parent dde7fb7836
commit e12a472612
1 changed files with 1 additions and 1 deletions

View File

@ -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,