mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2025-12-26 10:40:14 +01:00
tests: use GNU_SOURCE for compiling tests as well
So that strtod_l is found.
This commit is contained in:
parent
44a09a1050
commit
f46a801edb
3 changed files with 8 additions and 2 deletions
|
|
@ -3,6 +3,7 @@ common_env = common_test_env
|
|||
common_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
||||
common_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
||||
common_args = [
|
||||
'-D_GNU_SOURCE',
|
||||
'-DG_LOG_USE_STRUCTURED',
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ common_env = common_test_env
|
|||
common_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
||||
common_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
||||
common_args = [
|
||||
'-D_GNU_SOURCE',
|
||||
'-DG_LOG_USE_STRUCTURED',
|
||||
]
|
||||
|
||||
|
|
|
|||
|
|
@ -3,16 +3,20 @@ common_env = common_test_env
|
|||
common_env.set('G_TEST_SRCDIR', meson.current_source_dir())
|
||||
common_env.set('G_TEST_BUILDDIR', meson.current_build_dir())
|
||||
common_env.set('WIREPLUMBER_DATA_DIR', meson.current_source_dir())
|
||||
common_args = [
|
||||
'-D_GNU_SOURCE',
|
||||
]
|
||||
|
||||
test(
|
||||
'test-wplua',
|
||||
executable('test-wplua', 'wplua.c', dependencies: common_deps),
|
||||
executable('test-wplua', 'wplua.c',
|
||||
dependencies: common_deps, c_args: common_args),
|
||||
env: common_env,
|
||||
)
|
||||
|
||||
script_tester = executable('script-tester',
|
||||
'script-tester.c',
|
||||
dependencies: common_deps
|
||||
dependencies: common_deps, c_args: common_args
|
||||
)
|
||||
|
||||
test(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue