summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-29 01:45:03 +0000
committerDavid Robillard <d@drobilla.net>2011-09-29 01:45:03 +0000
commit51184c6ee6bd84e932c92bcdced6dfd680878461 (patch)
treeaa415aafbceadc2807f464f8ca914cfd81a0e76a /test
parent8de5b8a7768b2c733c358824b12b4050aee84273 (diff)
downloadlilv-51184c6ee6bd84e932c92bcdced6dfd680878461.tar.gz
lilv-51184c6ee6bd84e932c92bcdced6dfd680878461.tar.bz2
lilv-51184c6ee6bd84e932c92bcdced6dfd680878461.zip
Create ~/.lv2 if necessary
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3509 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test')
-rw-r--r--test/lilv_test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lilv_test.c b/test/lilv_test.c
index 9a1c6c2..a9da0e7 100644
--- a/test/lilv_test.c
+++ b/test/lilv_test.c
@@ -53,7 +53,9 @@ void
init_tests(void)
{
strncpy(bundle_dir_name, getenv("HOME"), 900);
- strcat(bundle_dir_name, "/.lv2/lilv-test.lv2");
+ strcat(bundle_dir_name, "/.lv2");
+ mkdir(bundle_dir_name, 0700);
+ strcat(bundle_dir_name, "/lilv-test.lv2");
sprintf(bundle_dir_uri, "file://%s/", bundle_dir_name);
sprintf(manifest_name, "%s/manifest.ttl", bundle_dir_name);
sprintf(content_name, "%s/plugin.ttl", bundle_dir_name);