mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
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:
parent
58d86cfb5f
commit
02aee17cc3
3 changed files with 13 additions and 1 deletions
|
|
@ -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)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue