diff options
author | David Robillard <d@drobilla.net> | 2015-11-07 20:18:17 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-11-07 20:18:17 +0000 |
commit | df9e43c745dbded4c2bc0c857add921b4ca25820 (patch) | |
tree | e31cab0dd94cbed1bb388f5eea8776d55ace29f4 /test | |
parent | 2a7e7959e5ad711d739c92a76c9701272d835cb9 (diff) | |
download | lilv-df9e43c745dbded4c2bc0c857add921b4ca25820.tar.gz lilv-df9e43c745dbded4c2bc0c857add921b4ca25820.tar.bz2 lilv-df9e43c745dbded4c2bc0c857add921b4ca25820.zip |
Remove unloaded plugins from world plugin list
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@5810 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test')
-rw-r--r-- | test/lilv_test.c | 8 |
1 files changed, 5 insertions, 3 deletions
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); |