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

@@ -262,12 +262,6 @@ main (gint argc,
gtk_test_init (&argc, &argv, NULL);
/* Add builddir as search path */
#ifdef PLUGIN_BUILDDIR
plugin_dir_provider = g_build_filename (PLUGIN_BUILDDIR, "provider", NULL);
peas_engine_add_search_path (peas_engine_get_default (), plugin_dir_provider, NULL);
#endif
g_test_add_func("/Calls/Manager/without_provider", test_calls_manager_without_provider);
g_test_add_func("/Calls/Manager/dummy_provider", test_calls_manager_dummy_provider);
g_test_add_func("/Calls/Manager/mm_provider", test_calls_manager_mm_provider);