]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make new authentication test case more robust.
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 5 Sep 2020 01:01:59 +0000 (21:01 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 5 Sep 2020 01:01:59 +0000 (21:01 -0400)
commitfc37c6f6105a594467eb8922eb6d47e0d156ab21
tree0adbcfe27b8f03a23de4cc6cc054e45a88b8c11f
parent9b47ee6e7cba30701b4e11b872455461460650c4
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.
src/test/authentication/t/001_password.pl