diff options
author | David Robillard <d@drobilla.net> | 2019-04-14 10:53:31 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-14 11:18:00 +0200 |
commit | 3b8a3bf458e920c1cff533db72e17ecc7b09c36d (patch) | |
tree | 428c940c0fe9b80009c9df0807f2049435952a19 /test | |
parent | 41a1a23f81ca279a0d8baf0c85ab97db9e267f9a (diff) | |
download | lilv-3b8a3bf458e920c1cff533db72e17ecc7b09c36d.tar.gz lilv-3b8a3bf458e920c1cff533db72e17ecc7b09c36d.tar.bz2 lilv-3b8a3bf458e920c1cff533db72e17ecc7b09c36d.zip |
Fix test bundle URI on Windows
Diffstat (limited to 'test')
-rw-r--r-- | test/lilv_test.c | 10 |
1 files changed, 8 insertions, 2 deletions
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(); } |