Use installed postgresql.conf.sample for GUC sanity TAP test

Andrew Dunstan <andrew@dunslane.net>

Commit: 0086ee356fd9fd0ced2f21e6b31031cb28b4a64a
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2022-11-13T14:10:24Z
Releases: 15.2
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.

Files

PathChange+/−
src/test/modules/test_misc/t/003_check_guc.pl modified +3 −4