]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Ignore more environment variables in TAP tests
authorMichael Paquier <michael@paquier.xyz>
Thu, 3 Jun 2021 02:51:05 +0000 (11:51 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 3 Jun 2021 02:51:05 +0000 (11:51 +0900)
commit9d660670541ccc803e1d48576b4a6d02a19321b0
treeadf8da816e794730a697e14c1f6ac989f8d42fa5
parent6753a5b7e86cd9bb1eed580b1f9001d5ea1bbdb3
Ignore more environment variables in TAP tests

Various environment variables were not getting reset in the TAP tests,
which would cause failures depending on the tests or the environment
variables involved.  For example, PGSSL{MAX,MIN}PROTOCOLVERSION could
cause failures in the SSL tests.  Even worse, a junk value of
PGCLIENTENCODING makes a server startup fail.  The list of variables
reset is adjusted in each stable branch depending on what is supported.

While on it, simplify a bit the code per a suggestion from Andrew
Dunstan, using a list of variables instead of doing single deletions.

Reviewed-by: Andrew Dunstan, Daniel Gustafsson
Discussion: https://postgr.es/m/YLbjjRpucIeZ78VQ@paquier.xyz
Backpatch-through: 9.6
src/test/perl/TestLib.pm