Lines Matching refs:r
51 int r; in handle_result() local
57 r = uv_fs_stat(NULL, &stat_req, req->path, NULL); in handle_result()
58 ASSERT_OK(r); in handle_result()
64 r = uv_fs_stat(NULL, &stat_req, dst, NULL); in handle_result()
65 ASSERT_OK(r); in handle_result()
80 int r; in touch_file() local
83 r = uv_fs_open(NULL, &req, name, in touch_file()
87 ASSERT_GE(r, 0); in touch_file()
88 file = r; in touch_file()
94 r = uv_fs_write(NULL, &req, file, &buf, 1, i, NULL); in touch_file()
96 ASSERT_GE(r, 0); in touch_file()
99 r = uv_fs_close(NULL, &req, file, NULL); in touch_file()
101 ASSERT_OK(r); in touch_file()
109 int r; in TEST_IMPL() local
114 r = uv_fs_copyfile(NULL, &req, src, dst, -1, NULL); in TEST_IMPL()
115 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL()
121 r = uv_fs_copyfile(NULL, &req, src, dst, 0, NULL); in TEST_IMPL()
123 ASSERT_EQ(r, UV_ENOENT); in TEST_IMPL()
126 r = uv_fs_stat(NULL, &req, dst, NULL); in TEST_IMPL()
127 ASSERT(r); in TEST_IMPL()
132 r = uv_fs_copyfile(NULL, &req, src, src, 0, NULL); in TEST_IMPL()
133 ASSERT_OK(r); in TEST_IMPL()
136 r = uv_fs_stat(NULL, &req, src, NULL); in TEST_IMPL()
137 ASSERT_OK(r); in TEST_IMPL()
144 r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL); in TEST_IMPL()
145 ASSERT_OK(r); in TEST_IMPL()
151 r = uv_fs_copyfile(NULL, &req, src, dst, 0, NULL); in TEST_IMPL()
152 ASSERT_OK(r); in TEST_IMPL()
156 r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL); in TEST_IMPL()
157 ASSERT_OK(r); in TEST_IMPL()
163 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_EXCL, NULL); in TEST_IMPL()
164 ASSERT_EQ(r, UV_EEXIST); in TEST_IMPL()
171 r = uv_fs_copyfile(NULL, &req, src, dst, 0, NULL); in TEST_IMPL()
172 ASSERT_OK(r); in TEST_IMPL()
178 r = uv_fs_copyfile(NULL, &req, src, dst, 0, NULL); in TEST_IMPL()
179 ASSERT_OK(r); in TEST_IMPL()
185 r = uv_fs_copyfile(loop, &req, fixture, dst, 0, handle_result); in TEST_IMPL()
186 ASSERT_OK(r); in TEST_IMPL()
196 r = uv_fs_copyfile(loop, &req, fixture, dst, -1, fail_cb); in TEST_IMPL()
197 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL()
202 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_FICLONE, NULL); in TEST_IMPL()
203 ASSERT_OK(r); in TEST_IMPL()
208 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_FICLONE_FORCE, in TEST_IMPL()
210 ASSERT_LE(r, 0); in TEST_IMPL()
212 if (r == 0) in TEST_IMPL()
220 r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL); in TEST_IMPL()
224 ASSERT_EQ(r, UV_EACCES); in TEST_IMPL()