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

@ -135,10 +135,15 @@ endif
summary({'pactl': pactl.found()}, bool_yn: true, section: 'Functional test programs')
if default_sm == 'media-session' or default_sm == 'wireplumber'
test_functional_c_args = []
if get_option('b_sanitize').contains('address')
test_functional_c_args += ['-DHAVE_ASAN']
endif
test('test-functional',
executable('test-functional',
'test-functional.c',
include_directories: pwtest_inc,
c_args: [test_functional_c_args],
dependencies: [ spa_dep ],
link_with: pwtest_lib)
)