summaryrefslogtreecommitdiffstats
path: root/test/lilv_test_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/lilv_test_utils.c')
-rw-r--r--test/lilv_test_utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/lilv_test_utils.c b/test/lilv_test_utils.c
index bc6eb3d..7a494ce 100644
--- a/test/lilv_test_utils.c
+++ b/test/lilv_test_utils.c
@@ -94,15 +94,15 @@ create_bundle(LilvTestEnv* env,
return 1;
}
- SerdNode s = serd_node_new_file_uri(
- (const uint8_t*)env->test_bundle_path, NULL, NULL, true);
+ SerdNode* s = serd_new_file_uri(SERD_MEASURE_STRING(env->test_bundle_path),
+ SERD_EMPTY_STRING());
- env->test_bundle_uri = lilv_new_uri(env->world, (const char*)s.buf);
+ env->test_bundle_uri = lilv_new_uri(env->world, serd_node_string(s));
env->test_manifest_path =
lilv_path_join(env->test_bundle_path, "manifest.ttl");
env->test_content_path = lilv_path_join(env->test_bundle_path, "plugin.ttl");
- serd_node_free(&s);
+ serd_node_free(s);
FILE* const manifest_file = fopen(env->test_manifest_path, "w");
if (!manifest_file) {