diff options
author | David Robillard <d@drobilla.net> | 2022-11-12 17:54:16 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-11-16 10:22:55 -0500 |
commit | 9374e4f1cafd8e48fbdcb455dc6fbdd958a52b67 (patch) | |
tree | 74a6acdf2df4ee2570786b55900291a1f06b153b /test/test_state.c | |
parent | ab98128551cc97e333caf714830f807bbe25bae7 (diff) | |
download | lilv-9374e4f1cafd8e48fbdcb455dc6fbdd958a52b67.tar.gz lilv-9374e4f1cafd8e48fbdcb455dc6fbdd958a52b67.tar.bz2 lilv-9374e4f1cafd8e48fbdcb455dc6fbdd958a52b67.zip |
Use zix_remove()
Diffstat (limited to 'test/test_state.c')
-rw-r--r-- | test/test_state.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/test/test_state.c b/test/test_state.c index e80ec89..26d8d97 100644 --- a/test/test_state.c +++ b/test/test_state.c @@ -148,7 +148,7 @@ remove_file(const char* path, const char* name, void* data) (void)data; char* const full_path = zix_path_join(NULL, path, name); - assert(!lilv_remove(full_path)); + assert(!zix_remove(full_path)); free(full_path); } @@ -159,11 +159,11 @@ cleanup_test_directories(const TestDirectories dirs) lilv_dir_for_each(dirs.copy, NULL, remove_file); lilv_dir_for_each(dirs.link, NULL, remove_file); - assert(!lilv_remove(dirs.link)); - assert(!lilv_remove(dirs.copy)); - assert(!lilv_remove(dirs.scratch)); - assert(!lilv_remove(dirs.shared)); - assert(!lilv_remove(dirs.top)); + assert(!zix_remove(dirs.link)); + assert(!zix_remove(dirs.copy)); + assert(!zix_remove(dirs.scratch)); + assert(!zix_remove(dirs.shared)); + assert(!zix_remove(dirs.top)); zix_free(NULL, dirs.link); zix_free(NULL, dirs.copy); @@ -663,8 +663,8 @@ test_to_files(void) lilv_instance_free(instance); lilv_dir_for_each(bundle_2_path, NULL, remove_file); lilv_dir_for_each(bundle_1_path, NULL, remove_file); - assert(!lilv_remove(bundle_2_path)); - assert(!lilv_remove(bundle_1_path)); + assert(!zix_remove(bundle_2_path)); + assert(!zix_remove(bundle_1_path)); cleanup_test_directories(dirs); zix_free(NULL, recfile_link_2); @@ -742,7 +742,7 @@ test_multi_save(void) lilv_instance_free(instance); lilv_dir_for_each(bundle_1_path, NULL, remove_file); - lilv_remove(bundle_1_path); + zix_remove(bundle_1_path); cleanup_test_directories(dirs); free(state_path); @@ -850,9 +850,9 @@ test_files_round_trip(void) lilv_dir_for_each(bundle_1_1_path, NULL, remove_file); lilv_dir_for_each(bundle_1_2_path, NULL, remove_file); lilv_dir_for_each(bundle_2_path, NULL, remove_file); - lilv_remove(bundle_1_1_path); - lilv_remove(bundle_1_2_path); - lilv_remove(bundle_2_path); + zix_remove(bundle_1_1_path); + zix_remove(bundle_1_2_path); + zix_remove(bundle_2_path); cleanup_test_directories(dirs); lilv_state_free(state_2_loaded); |