diff options
author | Noah Misch <noah@leadboat.com> | 2019-04-15 18:13:44 -0700 |
---|---|---|
committer | Noah Misch <noah@leadboat.com> | 2019-04-15 18:13:48 -0700 |
commit | 4dc903947e10b6f6de1de31c31e701d2a4d9516a (patch) | |
tree | d081a840f90b771ab0dc23d6aa61b3776822267f /src | |
parent | ab359624b4c102e308a86959ad74d34d52746db2 (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/26478.1555373328@sss.pgh.pa.us
Diffstat (limited to 'src')
-rw-r--r-- | src/test/recovery/t/017_shm.pl | 2 |
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 633606b2be0..70b789f704d 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, |