pgsql: Fix rare failure in LDAP tests. - Mailing list pgsql-committers

From Thomas Munro
Subject pgsql: Fix rare failure in LDAP tests.
Date
Msg-id E1k2OhC-0003Tk-4O@gemulon.postgresql.org
Whole thread Raw
List 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@leadboat.com>
Discussion: https://postgr.es/m/CA%2BhUKGLFmW%2BHQYPeKiwSp5sdFFHtFViCpw4Mh6yAgEx74r5-Cw%40mail.gmail.com

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1beb3ac5184fd32e8a1a79f4ace477a9e7ea27a7

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


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: Fix rare failure in LDAP tests.
Next
From: Michael Paquier
Date:
Subject: Re: pgsql: Adjust pgcrypto's expected test results for --disable-strong-ran