diff options
author | David Robillard <d@drobilla.net> | 2024-12-11 14:31:47 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-12-11 14:57:16 -0500 |
commit | 4870b69f9fa18ee0bd923a86f770ae1e2667580b (patch) | |
tree | 058007cd7facadc6489b2a935415de83b52787af /test/test_state.c | |
parent | 8ce82a873ac1667ee4cbdc83b812a91e4ada0edf (diff) | |
download | lilv-4870b69f9fa18ee0bd923a86f770ae1e2667580b.tar.gz lilv-4870b69f9fa18ee0bd923a86f770ae1e2667580b.tar.bz2 lilv-4870b69f9fa18ee0bd923a86f770ae1e2667580b.zip |
Use zix_create_directory() instead of mkdir()
Diffstat (limited to 'test/test_state.c')
-rw-r--r-- | test/test_state.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/test/test_state.c b/test/test_state.c index 7d3ddf7..378ecfe 100644 --- a/test/test_state.c +++ b/test/test_state.c @@ -15,13 +15,6 @@ #include <zix/filesystem.h> #include <zix/path.h> -#ifdef _WIN32 -# include <direct.h> -# define mkdir(path, flags) _mkdir(path) -#else -# include <sys/stat.h> -#endif - #include <assert.h> #include <stdbool.h> #include <stdint.h> @@ -128,10 +121,10 @@ create_test_directories(void) assert(dirs.copy); assert(dirs.link); - assert(!mkdir(dirs.shared, 0700)); - assert(!mkdir(dirs.scratch, 0700)); - assert(!mkdir(dirs.copy, 0700)); - assert(!mkdir(dirs.link, 0700)); + assert(!zix_create_directory(dirs.shared)); + assert(!zix_create_directory(dirs.scratch)); + assert(!zix_create_directory(dirs.copy)); + assert(!zix_create_directory(dirs.link)); free(top); |