]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Avoid and detect SIGPIPE race in TAP tests.
authorNoah Misch <noah@leadboat.com>
Sat, 16 Dec 2017 18:03:35 +0000 (10:03 -0800)
committerNoah Misch <noah@leadboat.com>
Sat, 16 Dec 2017 18:03:38 +0000 (10:03 -0800)
commitac93acbc05be2ef995208c1ca17f8083f60ccc53
treee78d0d21a6e4ed041b62179c9962a6b4a02e1a87
parentd3044f8b0732d369ad255c9268e2feb42acae2a0
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
src/test/authentication/t/001_password.pl
src/test/authentication/t/002_saslprep.pl
src/test/perl/TestLib.pm