summaryrefslogtreecommitdiff
path: root/source/tests
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-09-15 22:47:14 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-09-15 22:47:14 +0200
commitd103efdb7260d2c7ca3ad04c7a914028001d4652 (patch)
treea849b9440d2cdbe2e7665966e6e3b04c2385dc48 /source/tests
parent69307df84f0084f5c45f59fefba51f4de9d331d7 (diff)
downloadkit-d103efdb7260d2c7ca3ad04c7a914028001d4652.zip
test
Diffstat (limited to 'source/tests')
-rw-r--r--source/tests/file.test.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/source/tests/file.test.c b/source/tests/file.test.c
index c60c179..7a6224d 100644
--- a/source/tests/file.test.c
+++ b/source/tests/file.test.c
@@ -214,29 +214,21 @@ 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");
+ printf(" 1 \n");
fflush(stdout);
REQUIRE_EQ(path_type(SZ("test_folder")), PATH_NONE);
+ printf(" 2 \n");
+ fflush(stdout);
}
TEST("file remove") {