diff options
author | David Robillard <d@drobilla.net> | 2021-01-11 12:07:16 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2021-01-11 12:25:48 +0100 |
commit | 830c41e97938bd4bbf7422718bbc90df750b9d78 (patch) | |
tree | 3c6980115745347521fd7505183b346353adcca4 /test/test_plugin.c | |
parent | 1d0547504963fcbe28dba9d3913a2398df65a938 (diff) | |
download | lilv-830c41e97938bd4bbf7422718bbc90df750b9d78.tar.gz lilv-830c41e97938bd4bbf7422718bbc90df750b9d78.tar.bz2 lilv-830c41e97938bd4bbf7422718bbc90df750b9d78.zip |
Use unique test bundle names so tests can run in parallel
Diffstat (limited to 'test/test_plugin.c')
-rw-r--r-- | test/test_plugin.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/test_plugin.c b/test/test_plugin.c index a51c849..2a427dc 100644 --- a/test/test_plugin.c +++ b/test/test_plugin.c @@ -82,10 +82,15 @@ main(void) LilvTestEnv* const env = lilv_test_env_new(); LilvWorld* const world = env->world; - if (start_bundle(env, SIMPLE_MANIFEST_TTL, plugin_ttl)) { + lilv_world_load_all(world); + + if (create_bundle(env, "plugin.lv2", SIMPLE_MANIFEST_TTL, plugin_ttl)) { return 1; } + lilv_world_load_specifications(env->world); + lilv_world_load_bundle(env->world, env->test_bundle_uri); + const LilvPlugins* plugins = lilv_world_get_all_plugins(world); const LilvPlugin* plug = lilv_plugins_get_by_uri(plugins, env->plugin1_uri); assert(plug); @@ -104,7 +109,7 @@ main(void) assert(!lilv_plugin_get_related(plug, NULL)); const LilvNode* plug_bundle_uri = lilv_plugin_get_bundle_uri(plug); - assert(!strcmp(lilv_node_as_string(plug_bundle_uri), env->test_bundle_uri)); + assert(lilv_node_equals(plug_bundle_uri, env->test_bundle_uri)); const LilvNodes* data_uris = lilv_plugin_get_data_uris(plug); assert(lilv_nodes_size(data_uris) == 2); |