aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/async.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2021-10-18 09:51:21 +0900
committerMichael Paquier <michael@paquier.xyz>2021-10-18 09:51:21 +0900
commit384f1abdb9b0f669279fcd57ba2173eb31724740 (patch)
treec68e5b032fbb01e7aeafe4dd6cad7be6e5f1746d /src/backend/commands/async.c
parent40dfac4fc4776213a02291f13046d36e318f2629 (diff)
downloadpostgresql-384f1abdb9b0f669279fcd57ba2173eb31724740.tar.gz
postgresql-384f1abdb9b0f669279fcd57ba2173eb31724740.zip
Fix portability issues in new TAP tests of psql
The tests added by c0280bc and d9ddc50 in 001_basic.pl have introduced commands calling directly psql, making them sensitive to the environment. One issue was that those commands forgot -X to not use a local .psqlrc, causing all those tests to fail if psql cannot properly parse this file. TAP tests should be designed so as they run in an isolated fashion, without any dependency on the environment where they are run. As PostgresNode::psql gives already all the facilities those new tests need, switch to that instead of calling plain psql commands where interactions with a backend are needed. The test is slightly refactored to be able to check after the expected patterns of stdout and stderr, keeping the same amount of coverage as previously. Reported-by: Peter Geoghegan Discussion: https://postgr.es/m/CAH2-Wzn8ftvcDPwomn+y04JJzbT=TG7TN=QsmSEATUOW-ZuvQQ@mail.gmail.com
Diffstat (limited to 'src/backend/commands/async.c')
0 files changed, 0 insertions, 0 deletions