summaryrefslogtreecommitdiff
path: root/source/tests
diff options
context:
space:
mode:
Diffstat (limited to 'source/tests')
-rw-r--r--source/tests/file.test.c12
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);
}