summaryrefslogtreecommitdiffstats
path: root/test/missing_plugin.lv2/test_missing_plugin.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2022-11-12 17:53:36 -0500
committerDavid Robillard <d@drobilla.net>2022-11-16 10:22:55 -0500
commitd7fce849783d54c15658431552e1bd2eeec54378 (patch)
treee80bfd113c7ce4f5a8d43bf138c6e71aff5e1327 /test/missing_plugin.lv2/test_missing_plugin.c
parent1f937eeed6fb02d10bec9751936e9aa7119d98c2 (diff)
downloadlilv-d7fce849783d54c15658431552e1bd2eeec54378.tar.gz
lilv-d7fce849783d54c15658431552e1bd2eeec54378.tar.bz2
lilv-d7fce849783d54c15658431552e1bd2eeec54378.zip
Simplify test setup code
Diffstat (limited to 'test/missing_plugin.lv2/test_missing_plugin.c')
-rw-r--r--test/missing_plugin.lv2/test_missing_plugin.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/test/missing_plugin.lv2/test_missing_plugin.c b/test/missing_plugin.lv2/test_missing_plugin.c
index 2c9cc78..6eb1705 100644
--- a/test/missing_plugin.lv2/test_missing_plugin.c
+++ b/test/missing_plugin.lv2/test_missing_plugin.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/missing-plugin"
@@ -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);