]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Fix path of regress shared library in pg_upgrade test
authorMichael Paquier <michael@paquier.xyz>
Fri, 8 Dec 2023 01:37:34 +0000 (10:37 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 8 Dec 2023 01:37:34 +0000 (10:37 +0900)
commita09aa18eaa6aafd33bae7c32d99eb9e86a6ca3d6
treeef74ecf93c23f393989f49114a445648b9c5df96
parent6248a2bb92ccd4c591437c415775ab3b34c61d4c
Fix path of regress shared library in pg_upgrade test

During a pg_upgrade test using an old dump, all references to the old
regress shared library path (so, dylib or dll) are updated to point to
the library path used by the new build, to ensure a consistent
comparison between the old and new dumps.

The test previously relied on a hardcoded value of "src/test/regress/"
to build the new path value, which would point to an incorrect location
for the meson and vpath builds.  This is replaced by REGRESS_SHLIB, able
to point to the correct location of the regress shared library.

Author: Alexander Lakhin
Discussion: https://postgr.es/m/a628d8ad-a08a-2eab-4ca9-641bc82d3193@gmail.com
Backpatch-through: 15
src/bin/pg_upgrade/t/002_pg_upgrade.pl