diff options
Diffstat (limited to 'test/missing_plugin.lv2/test_missing_plugin.c')
-rw-r--r-- | test/missing_plugin.lv2/test_missing_plugin.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/test/missing_plugin.lv2/test_missing_plugin.c b/test/missing_plugin.lv2/test_missing_plugin.c index 861fcba..84e664d 100644 --- a/test/missing_plugin.lv2/test_missing_plugin.c +++ b/test/missing_plugin.lv2/test_missing_plugin.c @@ -6,8 +6,6 @@ #include "serd/serd.h" #include <assert.h> -#include <stdbool.h> -#include <stdint.h> #include <stdio.h> #include <stdlib.h> @@ -25,13 +23,12 @@ main(int argc, char** argv) LilvWorld* world = lilv_world_new(); // Load test plugin bundle - uint8_t* abs_bundle = (uint8_t*)lilv_path_absolute(bundle_path); - SerdNode bundle = serd_node_new_file_uri(abs_bundle, 0, 0, true); - LilvNode* bundle_uri = lilv_new_uri(world, (const char*)bundle.buf); - lilv_world_load_bundle(world, bundle_uri); + char* abs_bundle = lilv_path_absolute(bundle_path); + SerdNode* bundle = + serd_new_file_uri(SERD_MEASURE_STRING(abs_bundle), SERD_EMPTY_STRING()); + lilv_world_load_bundle(world, bundle); free(abs_bundle); - serd_node_free(&bundle); - lilv_node_free(bundle_uri); + serd_node_free(bundle); LilvNode* plugin_uri = lilv_new_uri(world, PLUGIN_URI); const LilvPlugins* plugins = lilv_world_get_all_plugins(world); |