]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Make test portlock logic work with meson
authorAndres Freund <andres@anarazel.de>
Fri, 21 Feb 2025 16:16:57 +0000 (11:16 -0500)
committerAndres Freund <andres@anarazel.de>
Fri, 21 Feb 2025 16:25:48 +0000 (11:25 -0500)
commit0f7c0fb59cb71e1ecd45c6892ab184fefbfde8be
tree5641248ea150b2dcffb3aa736eb7d33b9f762d95
parent310907aaf01053bbc00972a01438997b146b3fdd
Make test portlock logic work with meson

Previously the portlock logic, added in 9b4eafcaf41, didn't actually work
properly when the tests were run via meson. 9b4eafcaf41 used the
MESON_BUILD_ROOT environment variable to determine the directory for the port
lock directory, but that's never set for running the tests.  That meant that
each test used its own portlock dir, unless the PG_TEST_PORT_DIR environment
variable was set.

Fix the problem by setting top_builddir for the environment. That's also used
for the autoconf/make build.

Backpatch back to 16, where meson support was added.

Reported-by: Zharkov Roman <r.zharkov@postgrespro.ru>
Reviewed-by: Andrew Dunstan <andrew@dunslane.net>
Backpatch-through: 16
meson.build
src/test/perl/PostgreSQL/Test/Cluster.pm