]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix rare failure in LDAP tests.
authorThomas Munro <tmunro@postgresql.org>
Mon, 3 Aug 2020 00:39:15 +0000 (12:39 +1200)
committerThomas Munro <tmunro@postgresql.org>
Mon, 3 Aug 2020 00:48:11 +0000 (12:48 +1200)
commit1beb3ac5184fd32e8a1a79f4ace477a9e7ea27a7
treefb2e2b30d37ace0368e213ed9814e5a23a19eefe
parent1785ac8adebeb04aed6097d0d425f0c940f8fafb
Fix rare failure in LDAP tests.

Instead of writing a query to psql's stdin, use -c.  This avoids a
failure where psql exits before we write, seen a few times on the build
farm.  Thanks to Tom Lane for the suggestion.

Back-patch to 11, where the LDAP tests arrived.

Reviewed-by: Noah Misch <noah@leadboat.com>
Discussion: https://postgr.es/m/CA%2BhUKGLFmW%2BHQYPeKiwSp5sdFFHtFViCpw4Mh6yAgEx74r5-Cw%40mail.gmail.com
src/test/ldap/t/001_auth.pl