Skip to content
Snippets Groups Projects
Commit 4dc90394 authored by Noah Misch's avatar Noah Misch
Browse files

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
parent ab359624
No related branches found
No related tags found
No related merge requests found
...@@ -151,7 +151,7 @@ like(slurp_file($gnat->logfile), ...@@ -151,7 +151,7 @@ like(slurp_file($gnat->logfile),
my $single_stderr; my $single_stderr;
ok( !run_log( ok( !run_log(
[ 'postgres', '--single', '-D', $gnat->data_dir, 'template1' ], [ 'postgres', '--single', '-D', $gnat->data_dir, 'template1' ],
'<', \('SELECT 1 + 1'), '2>', \$single_stderr), '<', \undef, '2>', \$single_stderr),
'live query blocks --single'); 'live query blocks --single');
print STDERR $single_stderr; print STDERR $single_stderr;
like($single_stderr, $pre_existing_msg, like($single_stderr, $pre_existing_msg,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment