From 3b8a3bf458e920c1cff533db72e17ecc7b09c36d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 14 Apr 2019 10:53:31 +0200 Subject: Fix test bundle URI on Windows --- test/lilv_test.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'test/lilv_test.c') diff --git a/test/lilv_test.c b/test/lilv_test.c index f694742..ca56819 100644 --- a/test/lilv_test.c +++ b/test/lilv_test.c @@ -87,13 +87,19 @@ init_tests(void) "%s/test_lv2_path/lilv-test.lv2", build_path); lilv_mkdir_p(test_bundle_path); - snprintf(test_bundle_uri, sizeof(test_bundle_uri), "file://%s/", - test_bundle_path); + SerdNode s = serd_node_new_file_uri( + (const uint8_t*)test_bundle_path, NULL, NULL, true); + + snprintf(test_bundle_uri, sizeof(test_bundle_uri), "%s/", + (const char*)s.buf); snprintf(test_manifest_path, sizeof(test_manifest_path), "%s/manifest.ttl", test_bundle_path); snprintf(test_content_path, sizeof(test_content_path), "%s/plugin.ttl", test_bundle_path); + serd_node_free(&s); + lilv_free(build_path); + delete_bundle(); } -- cgit v1.2.1