Lines Matching refs:ret
18 int ret = 0; in test_fs_mount_flags() local
26 ret = fs_mount(mp); in test_fs_mount_flags()
28 zassert_false(ret == 0, "Expected failure", ret); in test_fs_mount_flags()
32 ret = fs_mount(mp); in test_fs_mount_flags()
34 zassert_false(ret == 0, "Expected failure", ret); in test_fs_mount_flags()
38 ret = fs_mount(mp); in test_fs_mount_flags()
40 zassert_equal(ret, 0, "Expected success", ret); in test_fs_mount_flags()
42 ret = fs_open(&fs, "/sml/some", FS_O_CREATE); in test_fs_mount_flags()
43 zassert_equal(ret, 0, "Expected success", ret); in test_fs_mount_flags()
46 ret = fs_mkdir("/sml/other"); in test_fs_mount_flags()
47 zassert_equal(ret, 0, "Expected success", ret); in test_fs_mount_flags()
49 ret = fs_unmount(mp); in test_fs_mount_flags()
50 zassert_equal(ret, 0, "Expected success", ret); in test_fs_mount_flags()
55 ret = fs_mount(mp); in test_fs_mount_flags()
56 zassert_equal(ret, 0, "Expected success", ret); in test_fs_mount_flags()
59 ret = fs_open(&fs, "/sml/nosome", FS_O_CREATE); in test_fs_mount_flags()
60 zassert_equal(ret, -EROFS, "Expected EROFS", ret); in test_fs_mount_flags()
61 ret = fs_mkdir("/sml/another"); in test_fs_mount_flags()
62 zassert_equal(ret, -EROFS, "Expected EROFS", ret); in test_fs_mount_flags()
63 ret = fs_rename("/sml/some", "/sml/nosome"); in test_fs_mount_flags()
64 zassert_equal(ret, -EROFS, "Expected EROFS", ret); in test_fs_mount_flags()
65 ret = fs_unlink("/sml/some"); in test_fs_mount_flags()
66 zassert_equal(ret, -EROFS, "Expected EROFS", ret); in test_fs_mount_flags()
67 ret = fs_open(&fs, "/sml/other", FS_O_CREATE); in test_fs_mount_flags()
68 zassert_equal(ret, -EROFS, "Expected EROFS", ret); in test_fs_mount_flags()
69 ret = fs_open(&fs, "/sml/some", FS_O_RDWR); in test_fs_mount_flags()
70 zassert_equal(ret, -EROFS, "Expected EROFS", ret); in test_fs_mount_flags()
71 ret = fs_open(&fs, "/sml/some", FS_O_READ); in test_fs_mount_flags()
72 zassert_equal(ret, 0, "Expected success", ret); in test_fs_mount_flags()
75 ret = fs_unmount(mp); in test_fs_mount_flags()
76 zassert_equal(ret, 0, "Expected success", ret); in test_fs_mount_flags()