Use installed postgresql.conf.sample for GUC sanity TAP test
authorAndrew Dunstan <andrew@dunslane.net>
Sun, 13 Nov 2022 14:07:53 +0000 (09:07 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Sun, 13 Nov 2022 14:10:24 +0000 (09:10 -0500)
commit0086ee356fd9fd0ced2f21e6b31031cb28b4a64a
treec88beedaed22749cb706406fe157c21b9ac72157
parent7a387f513d6c583b1c3fe5e4e0ea2b8cb92c85da
Use installed postgresql.conf.sample for GUC sanity TAP test

The current code looks for the sample file in the source directory, but
it seems better to test against the installed sample file.

Backpatch to release 15 where the test was introduced.

Discussion: https://postgr.es/m/73eea68e-3b6f-5f63-6024-25ed26b52016@dunslane.net

Reviewed by Tom Lane, Alvaro Herrera, Michael Paquier.
src/test/modules/test_misc/t/003_check_guc.pl