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 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.
Copy file name to clipboardExpand all lines: src/test/authentication/t/001_password.pl
+1
Original file line number
Diff line number
Diff line change
@@ -106,6 +106,7 @@ sub test_role
106
106
delete$ENV{"PGCHANNELBINDING"};
107
107
$ENV{"PGPASSFILE"} = $pgpassfile;
108
108
109
+
unlink($pgpassfile);
109
110
append_to_file($pgpassfile, qq!
110
111
# 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.
111
112
*:*:postgres:scram_role:pass:this is not part of the password.
0 commit comments