Lines Matching refs:dst
37 static const char dst[] = "test_file_dst"; variable
64 r = uv_fs_stat(NULL, &stat_req, dst, NULL); in handle_result()
114 r = uv_fs_copyfile(NULL, &req, src, dst, -1, NULL); in TEST_IMPL()
120 unlink(dst); in TEST_IMPL()
121 r = uv_fs_copyfile(NULL, &req, src, dst, 0, NULL); in TEST_IMPL()
126 r = uv_fs_stat(NULL, &req, dst, NULL); in TEST_IMPL()
143 unlink(dst); in TEST_IMPL()
144 r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL); in TEST_IMPL()
149 unlink(dst); in TEST_IMPL()
151 r = uv_fs_copyfile(NULL, &req, src, dst, 0, NULL); in TEST_IMPL()
156 r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL); in TEST_IMPL()
161 ASSERT_OK(uv_fs_chmod(NULL, &req, dst, 0644, NULL)); in TEST_IMPL()
163 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_EXCL, NULL); in TEST_IMPL()
168 ASSERT_OK(uv_fs_chmod(NULL, &req, dst, 0644, NULL)); in TEST_IMPL()
171 r = uv_fs_copyfile(NULL, &req, src, dst, 0, NULL); in TEST_IMPL()
176 unlink(dst); in TEST_IMPL()
178 r = uv_fs_copyfile(NULL, &req, src, dst, 0, NULL); in TEST_IMPL()
184 unlink(dst); in TEST_IMPL()
185 r = uv_fs_copyfile(loop, &req, fixture, dst, 0, handle_result); in TEST_IMPL()
191 ASSERT_OK(uv_fs_chmod(NULL, &req, dst, 0644, NULL)); in TEST_IMPL()
195 unlink(dst); in TEST_IMPL()
196 r = uv_fs_copyfile(loop, &req, fixture, dst, -1, fail_cb); in TEST_IMPL()
201 unlink(dst); in TEST_IMPL()
202 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_FICLONE, NULL); in TEST_IMPL()
207 unlink(dst); in TEST_IMPL()
208 r = uv_fs_copyfile(NULL, &req, fixture, dst, UV_FS_COPYFILE_FICLONE_FORCE, in TEST_IMPL()
217 unlink(dst); in TEST_IMPL()
218 touch_file(dst, 0); in TEST_IMPL()
219 chmod(dst, S_IRUSR|S_IRGRP|S_IROTH); /* Sets file mode to 444 (read-only). */ in TEST_IMPL()
220 r = uv_fs_copyfile(NULL, &req, fixture, dst, 0, NULL); in TEST_IMPL()
229 unlink(dst); /* Cleanup */ in TEST_IMPL()