pgsql: Fix rare failure in LDAP tests.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix rare failure in LDAP tests.
Date: 2020-08-03 00:50:51
Message-ID: E1k2Ogl-0003SY-A3@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)leadboat(dot)com>
Discussion: https://postgr.es/m/CA%2BhUKGLFmW%2BHQYPeKiwSp5sdFFHtFViCpw4Mh6yAgEx74r5-Cw%40mail.gmail.com

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/f5293fb09e7346bb663f2f5c63081e8aabe61a8e

Modified Files
--------------
src/test/ldap/t/001_auth.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Thomas Munro 2020-08-03 00:51:02 pgsql: Fix rare failure in LDAP tests.
Previous Message Thomas Munro 2020-08-03 00:50:38 pgsql: Fix rare failure in LDAP tests.