gplugin/gplugin

fix some bugs in the versioned dependencies test
bugfix/valgrind-catchup
2020-03-09, Gary Kramlich
38dac950aaaf
Parents feeaba4c7a19
Children 566a52ac82ce
fix some bugs in the versioned dependencies test
--- a/gplugin/tests/test-versioned-dependencies.c Mon Mar 09 21:27:54 2020 -0500
+++ b/gplugin/tests/test-versioned-dependencies.c Mon Mar 09 21:30:26 2020 -0500
@@ -34,7 +34,7 @@
GSList *deps = NULL, *l = NULL;
gboolean found = FALSE;
- plugin = gplugin_manager_find_plugin("gplugin/test-no-version");
+ plugin = gplugin_manager_find_plugin(id);
g_assert_cmpint(
gplugin_plugin_get_state(plugin),
==,
@@ -101,6 +101,7 @@
gint
main(gint argc, gchar **argv)
{
+ gint r = 0;
g_test_init(&argc, &argv, NULL);
@@ -111,5 +112,9 @@
"/dependent-versions/super-dependent",
test_load_with_dependencies);
- return g_test_run();
+ r = g_test_run();
+
+ gplugin_uninit();
+
+ return r;
}