Fix some issues with TAP tests for postgres -C
authorMichael Paquier <michael@paquier.xyz>
Wed, 22 Sep 2021 01:13:38 +0000 (10:13 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 22 Sep 2021 01:13:38 +0000 (10:13 +0900)
commit1a9d802828110c87a207785aaf6b00d8917a86ad
tree01b41fbdd7f25b535b5474050151b0fcd3f2915d
parent0d91c52a8fc71bfe5664a13368e42e1dabc5fe78
Fix some issues with TAP tests for postgres -C

This addresses two issues with the tests added in 0c39c292 for runtime
GUCs:
- Re-enable the test on Msys.  The test could fail because of \r\n
generated by Msys perl.  0d91c52a has taken care of this issue.
- Allow the test to run in the context of a privileged account.  CIs
running under privileged accounts would fail on permission failures, as
reported by Andres Freund.  This issue is fixed by wrapping the postgres
command within pg_ctl as the latter will take care of any permissions
needed.  The test checking a failure of postgres -C for a runtime
parameter with an instance running is removed, as pg_ctl produces an
unstable error code (no need for a CI to reproduce that).

Discussion: https://postgr.es/m/20210921032040.lyl4lcax37aedx2x@alap3.anarazel.de
src/bin/pg_checksums/t/002_actions.pl