Fix rare failure in LDAP tests.

Thomas Munro <tmunro@postgresql.org>

Commit: f44b9b625bedd8e0bca67b3b42ba10ce482fa31b
Author: Thomas Munro <tmunro@postgresql.org>
Date: 2020-08-03T00:49:36Z
Releases: 14.0
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

Files

PathChange+/−
src/test/ldap/t/001_auth.pl modified +2 −1

Discussion