diff options
author | David Robillard <d@drobilla.net> | 2019-04-21 14:08:34 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-21 14:08:34 +0200 |
commit | 5d214286bb0b4e62c76c308fe3ff5029a310baee (patch) | |
tree | 9d3e27763d9f7f1c643821e9b836792f413214a9 /test | |
parent | 23d049e524e2b9fa733d7e41f72cd63c1f2eb439 (diff) | |
download | lilv-5d214286bb0b4e62c76c308fe3ff5029a310baee.tar.gz lilv-5d214286bb0b4e62c76c308fe3ff5029a310baee.tar.bz2 lilv-5d214286bb0b4e62c76c308fe3ff5029a310baee.zip |
Fix building in a recursive project
Diffstat (limited to 'test')
-rw-r--r-- | test/lilv_test.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/lilv_test.c b/test/lilv_test.c index 3dc3336..ed8b862 100644 --- a/test/lilv_test.c +++ b/test/lilv_test.c @@ -81,10 +81,10 @@ delete_bundle(void) static void init_tests(void) { - char* build_path = lilv_realpath("."); + char* test_path = lilv_realpath(LILV_TEST_DIR); snprintf(test_bundle_path, sizeof(test_bundle_path), - "%s/test_lv2_path/lilv-test.lv2", build_path); + "%s/test_lv2_path/lilv-test.lv2", test_path); lilv_mkdir_p(test_bundle_path); SerdNode s = serd_node_new_file_uri( @@ -98,7 +98,7 @@ init_tests(void) test_bundle_path); serd_node_free(&s); - lilv_free(build_path); + lilv_free(test_path); delete_bundle(); } @@ -132,12 +132,12 @@ init_world(void) world = lilv_world_new(); // Set custom LV2_PATH in build directory to only use test data - char* build_path = lilv_realpath("."); - char* lv2_path = lilv_strjoin(build_path, "/test_lv2_path", NULL); - LilvNode* path = lilv_new_string(world, lv2_path); + char* test_path = lilv_realpath(LILV_TEST_DIR); + char* lv2_path = lilv_strjoin(test_path, "/test_lv2_path", NULL); + LilvNode* path = lilv_new_string(world, lv2_path); lilv_world_set_option(world, LILV_OPTION_LV2_PATH, path); free(lv2_path); - free(build_path); + free(test_path); lilv_node_free(path); return world != NULL; |