test: fix test library path and fix test-functional with ASAN

Set LD_LIBRARY_PATH to have processes spawned by test load the right
library.

Mark openal-info test skipped if ASAN is enabled. The problem is that
openal-info would need LD_PRELOAD to work properly then. Just disable
the test then.
This commit is contained in:
Pauli Virtanen 2025-07-28 22:05:45 +03:00 committed by Wim Taymans
parent 58d86cfb5f
commit 02aee17cc3
3 changed files with 13 additions and 1 deletions

View file

@ -788,6 +788,7 @@ static void set_test_env(struct pwtest_context *ctx, struct pwtest_test *t)
replace_env(t, "ACP_PROFILES_DIR", SOURCE_ROOT "/spa/plugins/alsa/mixer/profile-sets");
replace_env(t, "PIPEWIRE_LOG_SYSTEMD", "false");
replace_env(t, "PWTEST_DATA_DIR", SOURCE_ROOT "/test/data");
replace_env(t, "LD_LIBRARY_PATH", BUILD_ROOT "/src/pipewire:" BUILD_ROOT "pipewire-jack/src");
}
static void close_pipes(int fds[_FD_LAST])