Lines Matching refs:file
18 struct fs_file_t file; in ZTEST() local
21 fs_file_t_init(&file); in ZTEST()
28 zassert_equal(fs_open(&file, "/sml/file1", FS_O_CREATE), 0, "Create file1 failed"); in ZTEST()
29 zassert_equal(fs_close(&file), 0, "Close file error"); in ZTEST()
30 zassert_equal(fs_open(&file, "/sml/dir1/file2", FS_O_CREATE), 0, "Create file2 failed"); in ZTEST()
31 zassert_equal(fs_close(&file), 0, "Close file error"); in ZTEST()
32 zassert_equal(fs_open(&file, "/sml/dir2/file3", FS_O_CREATE), 0, "Create file3 failed"); in ZTEST()
33 zassert_equal(fs_close(&file), 0, "Close file error"); in ZTEST()
36 zassert_equal(fs_open(&file, "/sml/dir1", 0), -EINVAL, "Should return error"); in ZTEST()
37 zassert_equal(fs_open(&file, "/sml/dir2", 0), -EINVAL, "Should return error"); in ZTEST()
51 zassert_equal(fs_open(&file, "/sml/file1", 0), 0, "Open file1 should succeed"); in ZTEST()
52 zassert_equal(fs_close(&file), 0, "Close file error"); in ZTEST()
53 zassert_equal(fs_open(&file, "/sml/dir1/file2", 0), 0, "Open file2 should succeed"); in ZTEST()
54 zassert_equal(fs_close(&file), 0, "Close file error"); in ZTEST()
55 zassert_equal(fs_open(&file, "/sml/dir2/file3", 0), 0, "Open file3 should succeed"); in ZTEST()
56 zassert_equal(fs_close(&file), 0, "Close file error"); in ZTEST()
75 zassert_equal(fs_open(&file, "/sml/file2", 0), -ENOENT, "Should not exist"); in ZTEST()
76 zassert_equal(fs_open(&file, "/sml/file3", 0), -ENOENT, "Should not exist"); in ZTEST()
77 zassert_equal(fs_open(&file, "/sml/dir1/file1", 0), -ENOENT, "Should not exist"); in ZTEST()
78 zassert_equal(fs_open(&file, "/sml/dir1/file3", 0), -ENOENT, "Should not exist"); in ZTEST()
79 zassert_equal(fs_open(&file, "/sml/dir2/file1", 0), -ENOENT, "Should not exist"); in ZTEST()
80 zassert_equal(fs_open(&file, "/sml/dir2/file2", 0), -ENOENT, "Should not exist"); in ZTEST()