diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2017-05-16 00:02:11 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2017-05-16 00:02:11 +0100 |
commit | 2bf0a98bcd4e8af126725e1bd66fe41a04d4c330 (patch) | |
tree | f561b1e03ddb182f7bd749d663502160ac5a795b /tests/check | |
parent | 5fd554aa34858654f2114be739e7b89bd07c7ce1 (diff) |
meson: fix gstprintf test linking
Must link against gstprint helper lib to use private symbol.
Diffstat (limited to 'tests/check')
-rw-r--r-- | tests/check/meson.build | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/check/meson.build b/tests/check/meson.build index a6cbdbb82..47faa265e 100644 --- a/tests/check/meson.build +++ b/tests/check/meson.build @@ -30,7 +30,7 @@ core_tests = [ [ 'gst/gstobject.c' ], [ 'gst/gstpad.c', not have_registry ], [ 'gst/gstparamspecs.c' ], - [ 'gst/gstprintf.c', disable_gst_debug], + [ 'gst/gstprintf.c', disable_gst_debug, printf_lib], [ 'gst/gstpipeline.c', not have_registry ], [ 'gst/gstpoll.c' ], [ 'gst/gstplugin.c', not have_registry ], @@ -123,16 +123,15 @@ gst_deps = [gst_dep, gst_base_dep, gst_check_dep, gst_net_dep, gst_controller_de foreach t : core_tests fname = t.get(0) test_name = fname.split('.').get(0) - if t.length() == 2 - skip_test = t.get(1) - else - skip_test = false - endif + skip_test = t.get(1, false) + link_with_libs = t.get(2, []) + if not skip_test exe = executable(test_name, fname, c_args : gst_c_args + test_defines, cpp_args : gst_c_args + test_defines, include_directories : [configinc], + link_with : link_with_libs, dependencies : test_deps + glib_deps + gst_deps, ) |