summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-08-06 16:36:59 +0200
committerDavid Robillard <d@drobilla.net>2020-08-06 21:35:16 +0200
commit1dd3439bb66eae7b61a3ce22b72ae8668fec1b58 (patch)
tree24e954d205a691cae8ba3ccfb3da64a184ea247e /test
parentdb8a69a52e6dd5c9529537fb1e17489ee883e48c (diff)
downloadlilv-1dd3439bb66eae7b61a3ce22b72ae8668fec1b58.tar.gz
lilv-1dd3439bb66eae7b61a3ce22b72ae8668fec1b58.tar.bz2
lilv-1dd3439bb66eae7b61a3ce22b72ae8668fec1b58.zip
Add lilv_remove()
Diffstat (limited to 'test')
-rw-r--r--test/lilv_test_utils.c11
-rw-r--r--test/test_state.c3
2 files changed, 3 insertions, 11 deletions
diff --git a/test/lilv_test_utils.c b/test/lilv_test_utils.c
index def3eca..cfc5c4f 100644
--- a/test/lilv_test_utils.c
+++ b/test/lilv_test_utils.c
@@ -24,13 +24,6 @@
#include "lilv/lilv.h"
#include "serd/serd.h"
-#ifdef _WIN32
-# include <direct.h>
-# define mkdir(path, flags) _mkdir(path)
-#else
-# include <unistd.h>
-#endif
-
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
@@ -153,11 +146,11 @@ void
delete_bundle(LilvTestEnv* env)
{
if (env->test_content_path) {
- unlink(env->test_content_path);
+ lilv_remove(env->test_content_path);
}
if (env->test_manifest_path) {
- unlink(env->test_manifest_path);
+ lilv_remove(env->test_manifest_path);
}
if (env->test_bundle_path) {
diff --git a/test/test_state.c b/test/test_state.c
index acca4e9..5a2e5cb 100644
--- a/test/test_state.c
+++ b/test/test_state.c
@@ -32,7 +32,6 @@
# define mkdir(path, flags) _mkdir(path)
#else
# include <sys/stat.h>
-# include <unistd.h>
#endif
#include <assert.h>
@@ -561,7 +560,7 @@ main(void)
lilv_state_free(fstate7);
lilv_state_free(fstate72);
- rmdir("state");
+ lilv_remove("state");
// Free URI map
for (size_t i = 0; i < n_uris; ++i) {