From 94fa5fb03f02524dac8c6e37ded865d25df220ff Mon Sep 17 00:00:00 2001 From: Anastasios Andronidis Date: Mon, 12 Oct 2020 03:19:52 +0300 Subject: [PATCH] Invert assertion's logic. sqlfs_is_dir returns 1 (TRUE) when path is a dir. --- tests/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common.c b/tests/common.c index b066005..7a35af3 100644 --- a/tests/common.c +++ b/tests/common.c @@ -114,7 +114,7 @@ void test_mkdir_without_sleep(sqlfs_t *sqlfs) printf("Testing whether mkdir does not make nested dirs..."); testfilename = "/a/b/c/d/e/f/g"; sqlfs_proc_mkdir(sqlfs, testfilename, 0777); - assert(!sqlfs_is_dir(sqlfs, testfilename)); + assert(sqlfs_is_dir(sqlfs, testfilename) == 1); printf("passed\n"); }