diff options
author | David Robillard <d@drobilla.net> | 2022-11-12 17:53:36 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-11-16 10:22:55 -0500 |
commit | d7fce849783d54c15658431552e1bd2eeec54378 (patch) | |
tree | e80bfd113c7ce4f5a8d43bf138c6e71aff5e1327 /test/bad_syntax.lv2/test_bad_syntax.c | |
parent | 1f937eeed6fb02d10bec9751936e9aa7119d98c2 (diff) | |
download | lilv-d7fce849783d54c15658431552e1bd2eeec54378.tar.gz lilv-d7fce849783d54c15658431552e1bd2eeec54378.tar.bz2 lilv-d7fce849783d54c15658431552e1bd2eeec54378.zip |
Simplify test setup code
Diffstat (limited to 'test/bad_syntax.lv2/test_bad_syntax.c')
-rw-r--r-- | test/bad_syntax.lv2/test_bad_syntax.c | 12 |
1 files changed, 1 insertions, 11 deletions
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 <assert.h> -#include <stdbool.h> -#include <stdint.h> #include <stdio.h> -#include <stdlib.h> #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); |