From d7fce849783d54c15658431552e1bd2eeec54378 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 Nov 2022 17:53:36 -0500 Subject: Simplify test setup code --- test/missing_descriptor.lv2/test_missing_descriptor.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'test/missing_descriptor.lv2') diff --git a/test/missing_descriptor.lv2/test_missing_descriptor.c b/test/missing_descriptor.lv2/test_missing_descriptor.c index dd912db..b737048 100644 --- a/test/missing_descriptor.lv2/test_missing_descriptor.c +++ b/test/missing_descriptor.lv2/test_missing_descriptor.c @@ -3,16 +3,10 @@ #undef NDEBUG -#include "../src/filesystem.h" - #include "lilv/lilv.h" -#include "serd/serd.h" #include -#include -#include #include -#include #define PLUGIN_URI "http://example.org/missing-descriptor" @@ -28,12 +22,8 @@ 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); + LilvNode* bundle_uri = lilv_new_file_uri(world, NULL, bundle_path); lilv_world_load_bundle(world, bundle_uri); - free(abs_bundle); - serd_node_free(&bundle); lilv_node_free(bundle_uri); LilvNode* plugin_uri = lilv_new_uri(world, PLUGIN_URI); -- cgit v1.2.1