From df9e43c745dbded4c2bc0c857add921b4ca25820 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 7 Nov 2015 20:18:17 +0000 Subject: Remove unloaded plugins from world plugin list git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5810 a436a847-0d15-0410-975c-d299462d15a1 --- test/lilv_test.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/lilv_test.c b/test/lilv_test.c index 7b6d14a..64021f8 100644 --- a/test/lilv_test.c +++ b/test/lilv_test.c @@ -1982,14 +1982,16 @@ test_reload_bundle(void) ":plug a lv2:Plugin ; " PLUGIN_NAME("Second name") " ."); + // Check that plugin is no longer in the world's plugin list + TEST_ASSERT(lilv_plugins_size(plugins) == 0); + // Load new bundle lilv_world_load_bundle(world, bundle_uri); - // TODO: Mechanism to actually remove plugin from world list - - // Check that plugin is present again + // Check that plugin is present again and is the same LilvPlugin const LilvPlugin* plug2 = lilv_plugins_get_by_uri(plugins, plugin_uri_value); TEST_ASSERT(plug2); + TEST_ASSERT(plug2 == plug); // Check that plugin now has new name LilvNode* name2 = lilv_plugin_get_name(plug2); -- cgit v1.2.1