testcase/filesystem: Fix fs readdir() tc failure
Currently readdir() fs tc assert, checks for not equal to NULL case.
But when end of the directory stream is reached,readdir() returns NULL.
So tc assert should check for equal to NULL case.
@@ -951,7 +951,7 @@ static void tc_fs_vfs_seekdir(void)
seekdir(dir, offset);
TC_ASSERT_NEQ_CLEANUP("seekdir", dir, NULL, closedir(dir));
dirent = readdir(dir);
- TC_ASSERT_NEQ_CLEANUP("readdir", dirent, NULL, closedir(dir));
+ TC_ASSERT_EQ_CLEANUP("readdir", dirent, NULL, closedir(dir));
ret = closedir(dir);
TC_ASSERT_EQ("closedir", ret, OK);
