You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I happened to notice that the new test case I added in b55b4da
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.
Copy file name to clipboardExpand all lines: src/test/authentication/t/001_password.pl
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,7 @@ sub test_role
107
107
delete$ENV{"PGCHANNELBINDING"};
108
108
$ENV{"PGPASSFILE"} = $pgpassfile;
109
109
110
+
unlink($pgpassfile);
110
111
append_to_file($pgpassfile, qq!
111
112
# This very long comment is just here to exercise handling of long lines in the file. This very long comment is just here to exercise handling of long lines in the file. This very long comment is just here to exercise handling of long lines in the file. This very long comment is just here to exercise handling of long lines in the file. This very long comment is just here to exercise handling of long lines in the file.
112
113
*:*:postgres:scram_role:pass:this is not part of the password.
0 commit comments