From 4870b69f9fa18ee0bd923a86f770ae1e2667580b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 11 Dec 2024 14:31:47 -0500 Subject: Use zix_create_directory() instead of mkdir() --- test/test_state.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'test') 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 #include -#ifdef _WIN32 -# include -# define mkdir(path, flags) _mkdir(path) -#else -# include -#endif - #include #include #include @@ -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); -- cgit v1.2.1