]> 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)
commitd7ae549e31ccf19a28375b1f72ec898eeace3c58
treed4470f1b99b3f673df2d4ddb0f7866daac516954
parent7156a0eac3aff743cf0e0972db58c8fffe55cbfc
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