Lines Matching refs:path
63 const char* path; member
428 ASSERT(req->path); in open_cb()
429 ASSERT_OK(memcmp(req->path, "test_file2\0", 11)); in open_cb()
446 ASSERT(req->path); in open_cb_simple()
514 ASSERT(req->path); in mkdir_cb()
515 ASSERT_OK(memcmp(req->path, "test_dir\0", 9)); in mkdir_cb()
525 ASSERT(req->path); in check_mkdtemp_result()
526 ASSERT_EQ(15, strlen(req->path)); in check_mkdtemp_result()
527 ASSERT_OK(memcmp(req->path, "test_dir_", 9)); in check_mkdtemp_result()
528 ASSERT_NE(0, memcmp(req->path + 9, "XXXXXX", 6)); in check_mkdtemp_result()
529 check_permission(req->path, 0700); in check_mkdtemp_result()
532 r = uv_fs_stat(NULL, &stat_req, req->path, NULL); in check_mkdtemp_result()
551 ASSERT(req->path); in check_mkstemp_result()
552 ASSERT_EQ(16, strlen(req->path)); in check_mkstemp_result()
553 ASSERT_OK(memcmp(req->path, "test_file_", 10)); in check_mkstemp_result()
554 ASSERT_NE(0, memcmp(req->path + 10, "XXXXXX", 6)); in check_mkstemp_result()
555 check_permission(req->path, 0600); in check_mkstemp_result()
558 r = uv_fs_stat(NULL, &stat_req, req->path, NULL); in check_mkstemp_result()
577 ASSERT(req->path); in rmdir_cb()
578 ASSERT_OK(memcmp(req->path, "test_dir\0", 9)); in rmdir_cb()
617 ASSERT(req->path); in scandir_cb()
618 ASSERT_OK(memcmp(req->path, "test_dir\0", 9)); in scandir_cb()
812 static void check_utime(const char* path, in check_utime() argument
821 r = uv_fs_lstat(loop, &req, path, NULL); in check_utime()
823 r = uv_fs_stat(loop, &req, path, NULL); in check_utime()
881 check_utime(c->path, c->atime, c->mtime, /* test_lutime */ 0); in utime_cb()
896 check_utime(c->path, c->atime, c->mtime, /* test_lutime */ 0); in futime_cb()
910 check_utime(c->path, c->atime, c->mtime, /* test_lutime */ 1); in lutime_cb()
1365 ASSERT_NE(0, strcmp(mkdtemp_req1.path, mkdtemp_req2.path)); in TEST_IMPL()
1368 rmdir(mkdtemp_req1.path); in TEST_IMPL()
1369 rmdir(mkdtemp_req2.path); in TEST_IMPL()
1398 ASSERT_NE(0, strcmp(mkstemp_req1.path, mkstemp_req2.path)); in TEST_IMPL()
1404 ASSERT_OK(strlen(mkstemp_req3.path)); in TEST_IMPL()
1421 fd = uv_fs_open(NULL, &req, mkstemp_req1.path, UV_FS_O_RDONLY, 0, NULL); in TEST_IMPL()
1436 unlink(mkstemp_req1.path); in TEST_IMPL()
1437 unlink(mkstemp_req2.path); in TEST_IMPL()
2668 const char* path = "test_file"; in TEST_IMPL() local
2676 unlink(path); in TEST_IMPL()
2677 r = uv_fs_open(NULL, &req, path, UV_FS_O_RDWR | UV_FS_O_CREAT, in TEST_IMPL()
2687 r = uv_fs_utime(NULL, &req, path, atime, mtime, NULL); in TEST_IMPL()
2692 check_utime(path, atime, mtime, /* test_lutime */ 0); in TEST_IMPL()
2695 checkme.path = path; in TEST_IMPL()
2701 r = uv_fs_utime(loop, &utime_req, path, atime, mtime, utime_cb); in TEST_IMPL()
2707 unlink(path); in TEST_IMPL()
2715 const char path[] = "test_file"; in TEST_IMPL() local
2722 unlink(path); in TEST_IMPL()
2723 r = uv_fs_open(NULL, &req, path, UV_FS_O_RDWR | UV_FS_O_CREAT, in TEST_IMPL()
2733 r = uv_fs_utime(NULL, &req, path, atime, mtime, NULL); in TEST_IMPL()
2747 check_utime(path, atime, mtime, /* test_lutime */ 0); in TEST_IMPL()
2748 unlink(path); in TEST_IMPL()
2789 const char* path = "test_file"; in TEST_IMPL() local
2801 unlink(path); in TEST_IMPL()
2802 r = uv_fs_open(NULL, &req, path, UV_FS_O_RDWR | UV_FS_O_CREAT, in TEST_IMPL()
2812 r = uv_fs_open(NULL, &req, path, UV_FS_O_RDWR, 0, NULL); in TEST_IMPL()
2828 check_utime(path, atime, mtime, /* test_lutime */ 0); in TEST_IMPL()
2834 checkme.path = path; in TEST_IMPL()
2844 unlink(path); in TEST_IMPL()
2853 const char* path = "test_file"; in TEST_IMPL() local
2863 unlink(path); in TEST_IMPL()
2864 r = uv_fs_open(NULL, &req, path, UV_FS_O_RDWR | UV_FS_O_CREAT, in TEST_IMPL()
2873 s = uv_fs_symlink(NULL, &req, path, symlink_path, 0, NULL); in TEST_IMPL()
2893 checkme.path = symlink_path; in TEST_IMPL()
2911 checkme.path = symlink_path; in TEST_IMPL()
2919 unlink(path); in TEST_IMPL()
2944 const char* path; in TEST_IMPL() local
2949 path = "./empty_dir/"; in TEST_IMPL()
2952 uv_fs_mkdir(NULL, &req, path, 0777, NULL); in TEST_IMPL()
2958 r = uv_fs_scandir(NULL, &req, path, 0, NULL); in TEST_IMPL()
2965 r = uv_fs_scandir(loop, &scandir_req, path, 0, empty_scandir_cb); in TEST_IMPL()
2972 uv_fs_rmdir(NULL, &req, path, NULL); in TEST_IMPL()
2981 const char* path; in TEST_IMPL() local
2986 path = "./non_existent_dir/"; in TEST_IMPL()
2989 uv_fs_rmdir(NULL, &req, path, NULL); in TEST_IMPL()
2995 r = uv_fs_scandir(NULL, &req, path, 0, NULL); in TEST_IMPL()
3002 r = uv_fs_scandir(loop, &scandir_req, path, 0, non_existent_scandir_cb); in TEST_IMPL()
3014 const char* path; in TEST_IMPL() local
3017 path = "test/fixtures/empty_file"; in TEST_IMPL()
3020 r = uv_fs_scandir(NULL, &scandir_req, path, 0, NULL); in TEST_IMPL()
3024 r = uv_fs_scandir(loop, &scandir_req, path, 0, file_scandir_cb); in TEST_IMPL()
3055 const char* path; in TEST_IMPL() local
3059 path = "."; in TEST_IMPL()
3062 r = uv_fs_open(NULL, &req, path, UV_FS_O_RDONLY, 0, NULL); in TEST_IMPL()
3072 r = uv_fs_open(loop, &req, path, UV_FS_O_RDONLY, 0, open_cb_simple); in TEST_IMPL()
3908 ASSERT_NULL(write_req.path); in TEST_IMPL()