diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2023-09-15 22:43:14 +0200 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2023-09-15 22:43:14 +0200 |
commit | 69307df84f0084f5c45f59fefba51f4de9d331d7 (patch) | |
tree | f578f7f37f5fae81bae461f0f5a24420a9db4c93 /source/tests | |
parent | 61eb138424df83d3e8f168836b1efec63d832b1a (diff) | |
download | kit-69307df84f0084f5c45f59fefba51f4de9d331d7.zip |
test
Diffstat (limited to 'source/tests')
-rw-r--r-- | source/tests/file.test.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/tests/file.test.c b/source/tests/file.test.c index 9ec51bf..c60c179 100644 --- a/source/tests/file.test.c +++ b/source/tests/file.test.c @@ -214,16 +214,28 @@ TEST("create folder") { } TEST("create folder recursive") { + printf(" 1 \n"); + fflush(stdout); REQUIRE_EQ(folder_create_recursive( SZ("test_folder" PATH_DELIM "foo" PATH_DELIM "bar")), KIT_OK); + printf(" 2 \n"); + fflush(stdout); REQUIRE_EQ(path_type(SZ("test_folder")), PATH_FOLDER); + printf(" 3 \n"); + fflush(stdout); REQUIRE_EQ(path_type(SZ("test_folder" PATH_DELIM "foo")), PATH_FOLDER); + printf(" 4 \n"); + fflush(stdout); REQUIRE_EQ( path_type(SZ("test_folder" PATH_DELIM "foo" PATH_DELIM "bar")), PATH_FOLDER); + printf(" 5 \n"); + fflush(stdout); REQUIRE_EQ(file_remove_recursive(SZ("test_folder"), NULL), KIT_OK); + printf(" 6 \n"); + fflush(stdout); REQUIRE_EQ(path_type(SZ("test_folder")), PATH_NONE); } |