aports/main/postgresql18/fix-test-check_guc.patch
2025-11-10 00:11:50 +01:00

14 lines
473 B
Diff

--- a/src/test/modules/test_misc/t/003_check_guc.pl
+++ b/src/test/modules/test_misc/t/003_check_guc.pl
@@ -39,6 +39,10 @@
# use the sample file from the temp install
my $share_dir = $node->config_data('--sharedir');
+# XXX-Patched: --sharedir returns /usr/share/...
+if (-d "../../../../tmp_install") {
+ $share_dir = "../../../../tmp_install" . $share_dir
+}
my $sample_file = "$share_dir/postgresql.conf.sample";
# List of all the GUCs found in the sample file.