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/bad_syntax.lv2/test_bad_syntax.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'test/bad_syntax.lv2') diff --git a/test/bad_syntax.lv2/test_bad_syntax.c b/test/bad_syntax.lv2/test_bad_syntax.c index b8d62c4..39729d4 100644 --- a/test/bad_syntax.lv2/test_bad_syntax.c +++ b/test/bad_syntax.lv2/test_bad_syntax.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/bad-syntax" @@ -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