tests: Use CALLS_PLUGIN_DIR to search for plugins in the build dir

There is no need to add a second variable to search for plugins, we can
use CALLS_PLUGIN_DIR directly.
This commit is contained in:
Julian Sparber
2022-11-19 14:08:11 +01:00
parent d804b996f4
commit 270d145b65
6 changed files with 14 additions and 20 deletions

View File

@@ -32,12 +32,12 @@ test_env = [
'CALLS_AUDIOSRC=audiotestsrc',
'CALLS_AUDIOSINK=fakesink',
'GSETTINGS_SCHEMA_DIR=@0@/data'.format(meson.project_build_root()),
'CALLS_PLUGIN_DIR=@0@/plugins'.format(meson.project_build_root()),
]
test_cflags = [
'-DFOR_TESTING',
'-Wno-error=deprecated-declarations',
'-DPLUGIN_BUILDDIR="@0@"'.format(full_calls_plugin_builddir),
]
test_link_args = [

View File

@@ -429,10 +429,6 @@ main (int argc,
gtk_test_init (&argc, &argv, NULL);
gst_init (NULL, NULL);
#ifdef PLUGIN_BUILDDIR
peas_engine_add_search_path (peas_engine_get_default (), PLUGIN_BUILDDIR, NULL);
#endif
/* this is a workaround for an issue with sofia: https://github.com/freeswitch/sofia-sip/issues/58 */
su_random64 ();