summaryrefslogtreecommitdiffstats
path: root/test/lilv_test_utils.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-04 16:07:48 +0200
committerDavid Robillard <d@drobilla.net>2020-08-06 17:34:19 +0200
commit18c8af55e63653c74d58137cd12434f1213f4230 (patch)
tree902c20f451ab01b30f91d218a9a291fb3190b085 /test/lilv_test_utils.c
parentdd521d78d1959d694e6e5a565a37e9693756cb00 (diff)
downloadlilv-18c8af55e63653c74d58137cd12434f1213f4230.tar.gz
lilv-18c8af55e63653c74d58137cd12434f1213f4230.tar.bz2
lilv-18c8af55e63653c74d58137cd12434f1213f4230.zip
Rename some filename utilities for clarity
Loosely inspired by Python and the std::filesystem API.
Diffstat (limited to 'test/lilv_test_utils.c')
-rw-r--r--test/lilv_test_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/lilv_test_utils.c b/test/lilv_test_utils.c
index 8c617b0..def3eca 100644
--- a/test/lilv_test_utils.c
+++ b/test/lilv_test_utils.c
@@ -53,7 +53,7 @@ lilv_test_env_new(void)
env->plugin2_uri = lilv_new_uri(world, "http://example.org/foobar");
// Set custom LV2_PATH in build directory to only use test data
- char* test_path = lilv_realpath(LILV_TEST_DIR);
+ char* test_path = lilv_path_canonical(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);
@@ -83,12 +83,12 @@ create_bundle(LilvTestEnv* env, const char* manifest, const char* plugin)
{
static const char* const bundle_path = "/test_lv2_path/lilv-test.lv2";
- char* const test_path = lilv_realpath(LILV_TEST_DIR);
+ char* const test_path = lilv_path_canonical(LILV_TEST_DIR);
env->test_bundle_path = lilv_strjoin(test_path, bundle_path, NULL);
lilv_free(test_path);
}
- if (lilv_mkdir_p(env->test_bundle_path)) {
+ if (lilv_create_directories(env->test_bundle_path)) {
fprintf(stderr,
"Failed to create directory '%s' (%s)\n",
env->test_bundle_path,