Lines Matching refs:ASSERT

186   ASSERT((s->st_mode & 0777) & mode);  in check_permission()
188 ASSERT((s->st_mode & 0777) == mode); in check_permission()
311 ASSERT(req->result == 0 || req->result == UV_EPERM); in chown_root_cb()
425 ASSERT(0); in open_cb()
428 ASSERT(req->path); in open_cb()
443 ASSERT(0); in open_cb_simple()
446 ASSERT(req->path); in open_cb_simple()
514 ASSERT(req->path); in mkdir_cb()
525 ASSERT(req->path); in check_mkdtemp_result()
534 ASSERT(((uv_stat_t*)stat_req.ptr)->st_mode & S_IFDIR); in check_mkdtemp_result()
551 ASSERT(req->path); in check_mkstemp_result()
560 ASSERT(stat_req.statbuf.st_mode & S_IFREG); in check_mkstemp_result()
577 ASSERT(req->path); in rmdir_cb()
597 ASSERT(dent.type == UV_DIRENT_FILE || dent.type == UV_DIRENT_UNKNOWN); in assert_is_file_type()
610 ASSERT(req->ptr); in scandir_cb()
613 ASSERT(strcmp(dent.name, "file1") == 0 || strcmp(dent.name, "file2") == 0); in scandir_cb()
617 ASSERT(req->path); in scandir_cb()
620 ASSERT(!req->ptr); in scandir_cb()
661 ASSERT(req->fs_type == UV_FS_STAT || req->fs_type == UV_FS_LSTAT); in stat_cb()
663 ASSERT(req->ptr); in stat_cb()
666 ASSERT(!req->ptr); in stat_cb()
670 ASSERT(req->fs_type == UV_FS_STAT || req->fs_type == UV_FS_LSTAT); in stat_batch_cb()
672 ASSERT(req->ptr); in stat_batch_cb()
675 ASSERT(!req->ptr); in stat_batch_cb()
1087 ASSERT((r == UV_ENOTEMPTY) || (r == UV_EEXIST)); in TEST_IMPL()
1092 ASSERT((r == UV_ENOTDIR) || (r == UV_ENOENT)); in TEST_IMPL()
1199 ASSERT(scandir_req.ptr); in TEST_IMPL()
1201 ASSERT(strcmp(dent.name, "file1") == 0 || strcmp(dent.name, "file2") == 0); in TEST_IMPL()
1205 ASSERT(!scandir_req.ptr); in TEST_IMPL()
1487 ASSERT(s->st_birthtim.tv_sec == 0 || in TEST_IMPL()
1489 ASSERT(s->st_birthtim.tv_nsec == 0 || in TEST_IMPL()
1909 ASSERT(r); in TEST_IMPL()
2405 ASSERT(((uv_stat_t*)req.ptr)->st_mode & S_IFDIR); in test_symlink_dir_impl()
2413 ASSERT(((uv_stat_t*)req.ptr)->st_mode & S_IFLNK); in test_symlink_dir_impl()
2466 ASSERT(scandir_req.ptr); in test_symlink_dir_impl()
2468 ASSERT(strcmp(dent.name, "file1") == 0 || strcmp(dent.name, "file2") == 0); in test_symlink_dir_impl()
2472 ASSERT(!scandir_req.ptr); in test_symlink_dir_impl()
2486 ASSERT(scandir_req.ptr); in test_symlink_dir_impl()
2488 ASSERT(strcmp(dent.name, "file1") == 0 || strcmp(dent.name, "file2") == 0); in test_symlink_dir_impl()
2492 ASSERT(!scandir_req.ptr); in test_symlink_dir_impl()
2553 ASSERT(r); in TEST_IMPL()
2558 ASSERT(r == UV_EINVAL && GetLastError() == ERROR_SYMLINK_NOT_SUPPORTED); in TEST_IMPL()
2593 ASSERT(scandir_req.ptr); in TEST_IMPL()
2603 ASSERT(!scandir_req.ptr); in TEST_IMPL()
3710 ASSERT((r >= 0) || (r == UV_EISDIR)); in TEST_IMPL()
3770 ASSERT(result > 0 && result <= nbytes); in thread_main()
4534 ASSERT(r); in TEST_IMPL()
4553 ASSERT(r); in TEST_IMPL()
4600 ASSERT(r); in TEST_IMPL()