pgsql: Make new authentication test case more robust. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Make new authentication test case more robust.
Date
Msg-id E1kEMat-0004Pn-GC@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Make new authentication test case more robust.

I happened to notice that the new test case I added in b55b4dad9
falls over if one runs "make check" repeatedly; though not in branches
after v10.  That's because it was assuming that tmp_check/pgpass
wouldn't exist already.  However, it's only been since v11 that the
Makefiles forcibly remove all of tmp_check/ before starting a TAP run.
This fix to unlink the file is therefore strictly necessary only in
v10 ... but it seems wisest to do it across the board, rather than
let the test rely on external logic to get the conditions right.

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/546479f34f5c960494687f5808eb7b3d054478a1

Modified Files
--------------
src/test/authentication/t/001_password.pl | 1 +
1 file changed, 1 insertion(+)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix over-eager ping'ing in logical replication receiver.
Next
From: Michael Paquier
Date:
Subject: pgsql: Use multi-inserts for pg_depend