Lines Matching refs:ret
22 int ret = 0; in test_fs_mkfs_simple() local
26 ret = fs_mount(fs_mkfs_mp); in test_fs_mkfs_simple()
29 zassert_equal(ret, -EFAULT, "Expected EFAULT got %d", ret); in test_fs_mkfs_simple()
31 zassert_equal(ret, -ENODEV, "Expected ENODEV got %d", ret); in test_fs_mkfs_simple()
35 ret = fs_mkfs(fs_mkfs_type, fs_mkfs_dev_id, NULL, fs_mkfs_dev_id); in test_fs_mkfs_simple()
36 zassert_equal(ret, 0, "Expected successful mkfs (%d)", ret); in test_fs_mkfs_simple()
40 ret = fs_mount(fs_mkfs_mp); in test_fs_mkfs_simple()
41 zassert_equal(ret, 0, "Expected successful mount (%d)", ret); in test_fs_mkfs_simple()
42 ret = fs_unmount(fs_mkfs_mp); in test_fs_mkfs_simple()
43 zassert_equal(ret, 0, "Expected fs_unmount success (%d)", ret); in test_fs_mkfs_simple()
49 int ret = 0; in test_fs_mkfs_ops() local
60 ret = fs_mount(fs_mkfs_mp); in test_fs_mkfs_ops()
61 zassert_equal(ret, 0, "Expected success (%d)", ret); in test_fs_mkfs_ops()
63 ret = fs_open(&fs, some_file_path, FS_O_CREATE); in test_fs_mkfs_ops()
64 zassert_equal(ret, 0, "Expected success fs_open(FS_O_CREATE) (%d)", in test_fs_mkfs_ops()
65 ret); in test_fs_mkfs_ops()
66 ret = fs_close(&fs); in test_fs_mkfs_ops()
67 zassert_equal(ret, 0, "Expected fs_close success (%d)", ret); in test_fs_mkfs_ops()
69 ret = fs_mkdir(other_dir_path); in test_fs_mkfs_ops()
70 zassert_equal(ret, 0, "Expected fs_mkdir success (%d)", ret); in test_fs_mkfs_ops()
71 ret = fs_unmount(fs_mkfs_mp); in test_fs_mkfs_ops()
72 zassert_equal(ret, 0, "Expected fs_umount success (%d)", ret); in test_fs_mkfs_ops()
76 ret = fs_mkfs(fs_mkfs_type, fs_mkfs_dev_id, NULL, fs_mkfs_dev_id); in test_fs_mkfs_ops()
77 zassert_equal(ret, 0, "Expected successful format (%d)", ret); in test_fs_mkfs_ops()
79 ret = fs_mount(fs_mkfs_mp); in test_fs_mkfs_ops()
80 zassert_equal(ret, 0, "Expected successful mount (%d)", ret); in test_fs_mkfs_ops()
81 ret = fs_stat(some_file_path, &entry); in test_fs_mkfs_ops()
82 zassert_equal(ret, -ENOENT, "Expected ENOENT got %d", ret); in test_fs_mkfs_ops()
83 ret = fs_stat(other_dir_path, &entry); in test_fs_mkfs_ops()
84 zassert_equal(ret, -ENOENT, "Expected ENOENT got %d", ret); in test_fs_mkfs_ops()
86 ret = fs_open(&fs, some_file_path, FS_O_CREATE); in test_fs_mkfs_ops()
87 zassert_equal(ret, 0, "Expected success fs_open(FS_O_CREATE) (%d)", in test_fs_mkfs_ops()
88 ret); in test_fs_mkfs_ops()
89 ret = fs_close(&fs); in test_fs_mkfs_ops()
90 zassert_equal(ret, 0, "Expected fs_close success (%d)", ret); in test_fs_mkfs_ops()
92 ret = fs_mkdir(other_dir_path); in test_fs_mkfs_ops()
93 zassert_equal(ret, 0, "Expected fs_mkdir success (%d)", ret); in test_fs_mkfs_ops()
94 ret = fs_unmount(fs_mkfs_mp); in test_fs_mkfs_ops()
95 zassert_equal(ret, 0, "Expected fs_unmount success (%d)", ret); in test_fs_mkfs_ops()