Lines Matching refs:opendir_req
27 static uv_fs_t opendir_req; variable
78 ASSERT_PTR_EQ(req, &opendir_req); in empty_opendir_cb()
112 memset(&opendir_req, 0xdb, sizeof(opendir_req)); in TEST_IMPL()
116 &opendir_req, in TEST_IMPL()
120 ASSERT_EQ(opendir_req.fs_type, UV_FS_OPENDIR); in TEST_IMPL()
121 ASSERT_OK(opendir_req.result); in TEST_IMPL()
122 ASSERT_NOT_NULL(opendir_req.ptr); in TEST_IMPL()
123 dir = opendir_req.ptr; in TEST_IMPL()
124 uv_fs_req_cleanup(&opendir_req); in TEST_IMPL()
146 memset(&opendir_req, 0xdb, sizeof(opendir_req)); in TEST_IMPL()
150 r = uv_fs_opendir(uv_default_loop(), &opendir_req, path, empty_opendir_cb); in TEST_IMPL()
172 ASSERT_PTR_EQ(req, &opendir_req); in non_existing_opendir_cb()
188 memset(&opendir_req, 0xdb, sizeof(opendir_req)); in TEST_IMPL()
191 r = uv_fs_opendir(uv_default_loop(), &opendir_req, path, NULL); in TEST_IMPL()
193 ASSERT_EQ(opendir_req.fs_type, UV_FS_OPENDIR); in TEST_IMPL()
194 ASSERT_EQ(opendir_req.result, UV_ENOENT); in TEST_IMPL()
195 ASSERT_NULL(opendir_req.ptr); in TEST_IMPL()
196 uv_fs_req_cleanup(&opendir_req); in TEST_IMPL()
199 memset(&opendir_req, 0xdb, sizeof(opendir_req)); in TEST_IMPL()
203 &opendir_req, in TEST_IMPL()
224 ASSERT_PTR_EQ(req, &opendir_req); in file_opendir_cb()
240 memset(&opendir_req, 0xdb, sizeof(opendir_req)); in TEST_IMPL()
243 r = uv_fs_opendir(uv_default_loop(), &opendir_req, path, NULL); in TEST_IMPL()
246 ASSERT_EQ(opendir_req.fs_type, UV_FS_OPENDIR); in TEST_IMPL()
247 ASSERT_EQ(opendir_req.result, UV_ENOTDIR); in TEST_IMPL()
248 ASSERT_NULL(opendir_req.ptr); in TEST_IMPL()
250 uv_fs_req_cleanup(&opendir_req); in TEST_IMPL()
253 memset(&opendir_req, 0xdb, sizeof(opendir_req)); in TEST_IMPL()
256 r = uv_fs_opendir(uv_default_loop(), &opendir_req, path, file_opendir_cb); in TEST_IMPL()
327 ASSERT_PTR_EQ(req, &opendir_req); in non_empty_opendir_cb()
397 memset(&opendir_req, 0xdb, sizeof(opendir_req)); in TEST_IMPL()
400 r = uv_fs_opendir(uv_default_loop(), &opendir_req, "test_dir", NULL); in TEST_IMPL()
402 ASSERT_EQ(opendir_req.fs_type, UV_FS_OPENDIR); in TEST_IMPL()
403 ASSERT_OK(opendir_req.result); in TEST_IMPL()
404 ASSERT_NOT_NULL(opendir_req.ptr); in TEST_IMPL()
407 dir = opendir_req.ptr; in TEST_IMPL()
410 uv_fs_req_cleanup(&opendir_req); in TEST_IMPL()
443 memset(&opendir_req, 0xdb, sizeof(opendir_req)); in TEST_IMPL()
446 &opendir_req, in TEST_IMPL()
493 ASSERT_PTR_EQ(req, &opendir_req); in readdir_symlink_opendir_cb()
538 …r = uv_fs_opendir(uv_default_loop(), &opendir_req, "test_symlink_dir", readdir_symlink_opendir_cb); in TEST_IMPL()