Lines Matching refs:scandir_req

119 static uv_fs_t scandir_req;  variable
607 ASSERT_PTR_EQ(req, &scandir_req); in scandir_cb()
627 ASSERT_PTR_EQ(req, &scandir_req); in empty_scandir_cb()
639 ASSERT_PTR_EQ(req, &scandir_req); in non_existent_scandir_cb()
650 ASSERT_PTR_EQ(req, &scandir_req); in file_scandir_cb()
1189 r = uv_fs_scandir(loop, &scandir_req, "test_dir", 0, scandir_cb); in TEST_IMPL()
1196 r = uv_fs_scandir(NULL, &scandir_req, "test_dir", 0, NULL); in TEST_IMPL()
1198 ASSERT_EQ(2, scandir_req.result); in TEST_IMPL()
1199 ASSERT(scandir_req.ptr); in TEST_IMPL()
1200 while (UV_EOF != uv_fs_scandir_next(&scandir_req, &dent)) { in TEST_IMPL()
1204 uv_fs_req_cleanup(&scandir_req); in TEST_IMPL()
1205 ASSERT(!scandir_req.ptr); in TEST_IMPL()
2463 r = uv_fs_scandir(NULL, &scandir_req, "test_dir_symlink", 0, NULL); in test_symlink_dir_impl()
2465 ASSERT_EQ(2, scandir_req.result); in test_symlink_dir_impl()
2466 ASSERT(scandir_req.ptr); in test_symlink_dir_impl()
2467 while (UV_EOF != uv_fs_scandir_next(&scandir_req, &dent)) { in test_symlink_dir_impl()
2471 uv_fs_req_cleanup(&scandir_req); in test_symlink_dir_impl()
2472 ASSERT(!scandir_req.ptr); in test_symlink_dir_impl()
2479 r = uv_fs_scandir(NULL, &scandir_req, "test_dir_symlink", 0, NULL); in test_symlink_dir_impl()
2481 uv_fs_req_cleanup(&scandir_req); in test_symlink_dir_impl()
2483 r = uv_fs_scandir(NULL, &scandir_req, "test_dir", 0, NULL); in test_symlink_dir_impl()
2485 ASSERT_EQ(2, scandir_req.result); in test_symlink_dir_impl()
2486 ASSERT(scandir_req.ptr); in test_symlink_dir_impl()
2487 while (UV_EOF != uv_fs_scandir_next(&scandir_req, &dent)) { in test_symlink_dir_impl()
2491 uv_fs_req_cleanup(&scandir_req); in test_symlink_dir_impl()
2492 ASSERT(!scandir_req.ptr); in test_symlink_dir_impl()
2590 r = uv_fs_scandir(NULL, &scandir_req, "test_dir", 0, NULL); in TEST_IMPL()
2592 ASSERT_EQ(1, scandir_req.result); in TEST_IMPL()
2593 ASSERT(scandir_req.ptr); in TEST_IMPL()
2594 while (UV_EOF != uv_fs_scandir_next(&scandir_req, &dent)) { in TEST_IMPL()
2602 uv_fs_req_cleanup(&scandir_req); in TEST_IMPL()
2603 ASSERT(!scandir_req.ptr); in TEST_IMPL()
2965 r = uv_fs_scandir(loop, &scandir_req, path, 0, empty_scandir_cb); in TEST_IMPL()
3002 r = uv_fs_scandir(loop, &scandir_req, path, 0, non_existent_scandir_cb); in TEST_IMPL()
3020 r = uv_fs_scandir(NULL, &scandir_req, path, 0, NULL); in TEST_IMPL()
3022 uv_fs_req_cleanup(&scandir_req); in TEST_IMPL()
3024 r = uv_fs_scandir(loop, &scandir_req, path, 0, file_scandir_cb); in TEST_IMPL()
4667 r = uv_fs_scandir(NULL, &scandir_req, "test_dir", 0, NULL); in TEST_IMPL()
4669 ASSERT_EQ(1, scandir_req.result); in TEST_IMPL()
4670 ASSERT_NOT_NULL(scandir_req.ptr); in TEST_IMPL()
4671 while (UV_EOF != uv_fs_scandir_next(&scandir_req, &dent)) { in TEST_IMPL()
4677 uv_fs_req_cleanup(&scandir_req); in TEST_IMPL()
4678 ASSERT_NULL(scandir_req.ptr); in TEST_IMPL()