mirror of
https://github.com/postgres/postgres.git
synced 2025-06-16 06:01:02 +03:00
Avoid and detect SIGPIPE race in TAP tests.
Don't write to stdin of a psql process that could have already exited with an authentication failure. Buildfarm members crake and mandrill have failed once by doing so. Ignore SIGPIPE in all TAP tests. Back-patch to v10, where these tests were introduced. Reviewed by Michael Paquier. Discussion: https://postgr.es/m/20171209210203.GC3362632@rfd.leadboat.com
This commit is contained in:
@ -75,6 +75,10 @@ BEGIN
|
||||
INIT
|
||||
{
|
||||
|
||||
# Return EPIPE instead of killing the process with SIGPIPE. An affected
|
||||
# test may still fail, but it's more likely to report useful facts.
|
||||
$SIG{PIPE} = 'IGNORE';
|
||||
|
||||
# Determine output directories, and create them. The base path is the
|
||||
# TESTDIR environment variable, which is normally set by the invoking
|
||||
# Makefile.
|
||||
|
Reference in New Issue
Block a user