Lines Matching refs:test_file
245 strcat(test_file_abs_buf, "\\test_file");
248 strcat(test_file_abs_buf, "/test_file");
268 check_permission("test_file", *(int*)req->data);
277 check_permission("test_file", *(int*)req->data);
960 unlink("test_file");
965 r = uv_fs_open(loop, &open_req1, "test_file", UV_FS_O_WRONLY | UV_FS_O_CREAT,
976 r = uv_fs_rename(loop, &rename_req, "test_file", "test_file2", rename_cb);
1011 unlink("test_file");
1023 unlink("test_file");
1028 r = uv_fs_open(loop, &open_req1, "test_file",
1046 r = uv_fs_open(NULL, &open_req1, "test_file", UV_FS_O_RDWR | add_flags, 0,
1069 r = uv_fs_rename(NULL, &rename_req, "test_file", "test_file2", NULL);
1099 unlink("test_file");
1159 unlink("test_file");
1163 r = uv_fs_open(NULL, &open_req1, "test_file",
1181 unlink("test_file");
1298 unlink("test_file");
1301 f = open("test_file", UV_FS_O_WRONLY | UV_FS_O_CREAT, S_IWUSR | S_IRUSR);
1311 r = uv_fs_open(NULL, &open_req1, "test_file", UV_FS_O_RDWR, 0, NULL);
1338 ASSERT_OK(stat("test_file", &s1));
1361 unlink("test_file");
1440 ASSERT_EQ(UV_EINVAL, uv_fs_mkstemp(NULL, &mkstemp_req3, "test_file", NULL));
1502 unlink("test_file");
1506 r = uv_fs_open(NULL, &req, "test_file", UV_FS_O_RDWR | UV_FS_O_CREAT,
1642 unlink("test_file");
1653 char* test_file = "tmp_st_dev";
1656 unlink(test_file);
1660 int r = uv_fs_open(NULL, &req, test_file, UV_FS_O_RDWR | UV_FS_O_CREAT,
1667 r = uv_fs_symlink(loop, &req, test_file, symlink_file, 0, NULL);
1672 r = uv_fs_stat(loop, &req, test_file, NULL);
1685 unlink(test_file);
1738 unlink("test_file");
1744 r = uv_fs_access(NULL, &req, "test_file", F_OK, NULL);
1750 r = uv_fs_access(loop, &req, "test_file", F_OK, access_cb);
1757 r = uv_fs_open(NULL, &req, "test_file", UV_FS_O_RDWR | UV_FS_O_CREAT,
1765 r = uv_fs_access(NULL, &req, "test_file", F_OK, NULL);
1771 r = uv_fs_access(loop, &req, "test_file", F_OK, access_cb);
1800 unlink("test_file");
1814 unlink("test_file");
1818 r = uv_fs_open(NULL, &req, "test_file", UV_FS_O_RDWR | UV_FS_O_CREAT,
1833 r = uv_fs_chmod(NULL, &req, "test_file", 0200, NULL);
1838 check_permission("test_file", 0200);
1842 r = uv_fs_chmod(NULL, &req, "test_file", 0400, NULL);
1847 check_permission("test_file", 0400);
1855 check_permission("test_file", 0600);
1863 r = uv_fs_chmod(loop, &req, "test_file", 0200, chmod_cb);
1875 r = uv_fs_chmod(loop, &req, "test_file", 0400, chmod_cb);
1899 unlink("test_file");
1912 unlink("test_file");
1917 test_file", UV_FS_O_RDWR | UV_FS_O_CREAT,
1934 r = uv_fs_chmod(NULL, &req, "test_file", 0400, NULL);
1939 check_permission("test_file", 0400);
1942 r = uv_fs_unlink(NULL, &req, "test_file", NULL);
1954 uv_fs_chmod(NULL, &req, "test_file", 0600, NULL);
1956 unlink("test_file");
1969 unlink("test_file");
1974 &req, "test_file", UV_FS_O_RDWR | UV_FS_O_CREAT,
1991 r = SetFileAttributes("test_file", FILE_ATTRIBUTE_READONLY);
1995 check_permission("test_file", 0400);
1998 r = uv_fs_unlink(NULL, &req, "test_file", NULL);
2010 uv_fs_chmod(NULL, &req, "test_file", 0600, NULL);
2012 unlink("test_file");
2025 unlink("test_file");
2030 r = uv_fs_open(NULL, &req, "test_file", UV_FS_O_RDWR | UV_FS_O_CREAT,
2038 r = uv_fs_chown(NULL, &req, "test_file", -1, -1, NULL);
2050 r = uv_fs_chown(loop, &req, "test_file", -1, -1, chown_cb);
2058 r = uv_fs_chown(loop, &req, "test_file", 0, 0, chown_root_cb);
2073 r = uv_fs_link(NULL, &req, "test_file", "test_file_link", NULL);
2104 unlink("test_file");
2119 unlink("test_file");
2125 r = uv_fs_open(NULL, &req, "test_file", UV_FS_O_RDWR | UV_FS_O_CREAT,
2141 r = uv_fs_link(NULL, &req, "test_file", "test_file_link", NULL);
2162 r = uv_fs_link(loop, &req, "test_file", "test_file_link2", link_cb);
2189 unlink("test_file");
2226 r = uv_fs_open(NULL, &req, "test_file", UV_FS_O_RDWR | UV_FS_O_CREAT,
2239 r = uv_fs_readlink(NULL, &req, "test_file", NULL);
2244 unlink("test_file");
2282 unlink("test_file");
2290 strcat(test_file_abs_buf, "\\test_file");
2293 strcat(test_file_abs_buf, "/test_file");
2298 r = uv_fs_open(NULL, &req, "test_file", UV_FS_O_RDWR | UV_FS_O_CREAT,
2314 r = uv_fs_symlink(NULL, &req, "test_file", "test_file_symlink", 0, NULL);
2381 "test_file",
2418 r = uv_fs_realpath(loop, &req, "test_file", realpath_cb);
2430 unlink("test_file");
2605 unlink("test_dir/test_file");
2613 file_handle = CreateFile("test_dir/test_file",
2640 r = uv_fs_readlink(NULL, &req, "test_dir/test_file", NULL);
2664 r = uv_fs_stat(NULL, &req, "test_dir/test_file", NULL);
2668 r = uv_fs_lstat(NULL, &req, "test_dir/test_file", NULL);
2678 ASSERT_OK(strcmp(dent.name, "test_file"));
2689 unlink("test_dir/test_file");
2751 const char* path = "test_file";
2831 const char path[] = "test_file";
2905 const char* path = "test_file";
3003 const char* path = "test_file";
3269 unlink("test_file");
3273 r = uv_fs_open(NULL, &open_req1, "test_file",
3291 r = uv_fs_open(NULL, &open_req1, "test_file",
3308 r = uv_fs_open(NULL, &open_req1, "test_file", UV_FS_O_RDONLY | add_flags,
3330 unlink("test_file");
3345 unlink("test_file");
3350 r = uv_fs_open(NULL, &open_req1, "test_file", UV_FS_O_WRONLY | UV_FS_O_CREAT,
3378 r = uv_fs_rename(NULL, &rename_req, "test_file", "test_file2", NULL);
3402 unlink("test_file");
3475 unlink("test_file");
3479 r = uv_fs_open(NULL, &open_req1, "test_file",
3497 r = uv_fs_open(NULL, &open_req1, "test_file", UV_FS_O_RDONLY | add_flags, 0,
3524 unlink("test_file");
3540 unlink("test_file");
3544 r = uv_fs_open(NULL, &open_req1, "test_file",
3563 r = uv_fs_open(NULL, &open_req1, "test_file", UV_FS_O_RDONLY | add_flags, 0,
3619 unlink("test_file");
3641 unlink("test_file");
3651 "test_file",
3686 r = uv_fs_open(NULL, &open_req1, "test_file", UV_FS_O_RDONLY | add_flags, 0,
3726 unlink("test_file");
3754 unlink("test_file");
3764 "test_file",
3818 r = uv_fs_stat(NULL, &stat_req, "test_file", NULL);
3842 unlink("test_file");
4146 unlink("test_file");
4151 &open_req1, "test_file", UV_FS_O_RDWR | UV_FS_O_CREAT,
4171 unlink("test_file");
4183 unlink("test_file");
4189 "test_file",
4217 unlink("test_file");
4227 unlink("test_file");
4231 &open_req1, "test_file", UV_FS_O_RDWR | UV_FS_O_CREAT,
4255 unlink("test_file");
4303 r = uv_fs_open(NULL, &open_req1, "test_file", UV_FS_O_RDONLY, 0, NULL);
4319 unlink("test_file");
4326 unlink("test_file");
4330 "test_file",
4364 unlink("test_file");
4368 "test_file",
4509 unlink("test_file");
4515 "test_file",
4525 "test_file", UV_FS_O_RDONLY | UV_FS_O_EXLOCK,
4539 "test_file", UV_FS_O_RDONLY | UV_FS_O_EXLOCK,
4552 unlink("test_file");
4564 unlink("test_file");
4574 "test_file",
4590 "test_file",
4599 unlink("test_file");
4755 unlink("test_file");
4757 &req, "test_file", UV_FS_O_WRONLY | UV_FS_O_CREAT,
4768 r = SetFileAttributes("test_file", FILE_ATTRIBUTE_READONLY);
4770 check_permission("test_file", 0400);
4772 r = uv_fs_open(NULL, &req, "test_file", UV_FS_O_RDONLY, 0, NULL);
4784 check_permission("test_file", S_IWUSR);
4787 r = SetFileAttributes("test_file", FILE_ATTRIBUTE_ARCHIVE);