Lines Matching refs:ASSERT_OK
177 ASSERT_OK(r); in check_permission()
178 ASSERT_OK(req.result); in check_permission()
203 ASSERT_OK(req->result); in link_cb()
211 ASSERT_OK(req->result); in symlink_cb()
218 ASSERT_OK(req->result); in readlink_cb()
219 ASSERT_OK(strcmp(req->ptr, "test_file_symlink2")); in readlink_cb()
229 ASSERT_OK(req->result); in realpath_cb()
234 ASSERT_OK(_stricmp(req->ptr, test_file_abs_buf)); in realpath_cb()
237 ASSERT_OK(strcmp(req->ptr, test_file_abs_buf)); in realpath_cb()
253 ASSERT_OK(req->result); in fchmod_cb()
262 ASSERT_OK(req->result); in chmod_cb()
271 ASSERT_OK(req->result); in fchown_cb()
279 ASSERT_OK(req->result); in chown_cb()
286 ASSERT_OK(req->result); in lchown_cb()
295 ASSERT_OK(req->result); in chown_root_cb()
301 ASSERT_OK(req->result); in chown_root_cb()
323 ASSERT_OK(req->result); in unlink_cb()
331 ASSERT_OK(req->result); in fstat_cb()
342 ASSERT_OK(req->result); in statfs_cb()
348 ASSERT_OK(stats->f_type); in statfs_cb()
359 ASSERT_OK(stats->f_files); in statfs_cb()
360 ASSERT_OK(stats->f_ffree); in statfs_cb()
375 ASSERT_OK(req->result); in close_cb()
380 ASSERT_OK(r); in close_cb()
389 ASSERT_OK(req->result); in ftruncate_cb()
393 ASSERT_OK(r); in ftruncate_cb()
408 ASSERT_OK(strcmp(buf, test_buf)); in read_cb()
412 ASSERT_OK(strcmp(buf, "test-bu")); in read_cb()
415 ASSERT_OK(r); in read_cb()
429 ASSERT_OK(memcmp(req->path, "test_file2\0", 11)); in open_cb()
435 ASSERT_OK(r); in open_cb()
455 ASSERT_OK(req->result); in fsync_cb()
459 ASSERT_OK(r); in fsync_cb()
467 ASSERT_OK(req->result); in fdatasync_cb()
471 ASSERT_OK(r); in fdatasync_cb()
483 ASSERT_OK(r); in write_cb()
496 ASSERT_OK(r); in create_cb()
503 ASSERT_OK(req->result); in rename_cb()
512 ASSERT_OK(req->result); in mkdir_cb()
515 ASSERT_OK(memcmp(req->path, "test_dir\0", 9)); in mkdir_cb()
524 ASSERT_OK(req->result); in check_mkdtemp_result()
527 ASSERT_OK(memcmp(req->path, "test_dir_", 9)); in check_mkdtemp_result()
533 ASSERT_OK(r); in check_mkdtemp_result()
553 ASSERT_OK(memcmp(req->path, "test_file_", 10)); in check_mkstemp_result()
559 ASSERT_OK(r); in check_mkstemp_result()
575 ASSERT_OK(req->result); in rmdir_cb()
578 ASSERT_OK(memcmp(req->path, "test_dir\0", 9)); in rmdir_cb()
618 ASSERT_OK(memcmp(req->path, "test_dir\0", 9)); in scandir_cb()
629 ASSERT_OK(req->result); in empty_scandir_cb()
662 ASSERT_OK(req->result); in stat_cb()
671 ASSERT_OK(req->result); in stat_batch_cb()
691 ASSERT_OK(req->result); in sendfile_nodata_cb()
732 ASSERT_OK(r); in TEST_IMPL()
734 ASSERT_OK(open_cb_count); in TEST_IMPL()
760 ASSERT_OK(r); in TEST_IMPL()
762 ASSERT_OK(open_cb_count); in TEST_IMPL()
791 ASSERT_OK(r); in TEST_IMPL()
800 ASSERT_OK(r); in TEST_IMPL()
802 ASSERT_OK(open_cb_count); in TEST_IMPL()
825 ASSERT_OK(r); in check_utime()
827 ASSERT_OK(req.result); in check_utime()
877 ASSERT_OK(req->result); in utime_cb()
892 ASSERT_OK(req->result); in futime_cb()
906 ASSERT_OK(req->result); in lutime_cb()
928 ASSERT_OK(r); in TEST_IMPL()
938 ASSERT_OK(r); in TEST_IMPL()
947 ASSERT_OK(r); in TEST_IMPL()
959 ASSERT_OK(r); in TEST_IMPL()
1003 ASSERT_OK(r); in fs_file_sync()
1004 ASSERT_OK(close_req.result); in fs_file_sync()
1017 ASSERT_OK(strcmp(buf, test_buf)); in fs_file_sync()
1021 ASSERT_OK(r); in fs_file_sync()
1022 ASSERT_OK(ftruncate_req.result); in fs_file_sync()
1026 ASSERT_OK(r); in fs_file_sync()
1027 ASSERT_OK(close_req.result); in fs_file_sync()
1031 ASSERT_OK(r); in fs_file_sync()
1032 ASSERT_OK(rename_req.result); in fs_file_sync()
1046 ASSERT_OK(strcmp(buf, "test-bu")); in fs_file_sync()
1050 ASSERT_OK(r); in fs_file_sync()
1051 ASSERT_OK(close_req.result); in fs_file_sync()
1055 ASSERT_OK(r); in fs_file_sync()
1056 ASSERT_OK(unlink_req.result); in fs_file_sync()
1079 ASSERT_OK(r); in TEST_IMPL()
1097 ASSERT_OK(r); in TEST_IMPL()
1098 ASSERT_OK(unlink_req.result); in TEST_IMPL()
1103 ASSERT_OK(r); in TEST_IMPL()
1104 ASSERT_OK(rmdir_req.result); in TEST_IMPL()
1109 ASSERT_OK(r); in TEST_IMPL()
1133 ASSERT_OK(r); in fs_file_write_null_buffer()
1134 ASSERT_OK(write_req.result); in fs_file_write_null_buffer()
1138 ASSERT_OK(r); in fs_file_write_null_buffer()
1139 ASSERT_OK(close_req.result); in fs_file_write_null_buffer()
1165 ASSERT_OK(r); in TEST_IMPL()
1177 ASSERT_OK(r); in TEST_IMPL()
1186 ASSERT_OK(r); in TEST_IMPL()
1190 ASSERT_OK(r); in TEST_IMPL()
1208 ASSERT_OK(r); in TEST_IMPL()
1212 ASSERT_OK(r); in TEST_IMPL()
1216 ASSERT_OK(r); in TEST_IMPL()
1220 ASSERT_OK(r); in TEST_IMPL()
1226 ASSERT_OK(r); in TEST_IMPL()
1231 ASSERT_OK(r); in TEST_IMPL()
1236 ASSERT_OK(r); in TEST_IMPL()
1269 ASSERT_OK(r); in test_sendfile()
1285 ASSERT_OK(r); in test_sendfile()
1291 ASSERT_OK(r); in test_sendfile()
1294 ASSERT_OK(r); in test_sendfile()
1299 ASSERT_OK(stat("test_file", &s1)); in test_sendfile()
1300 ASSERT_OK(stat("test_file2", &s2)); in test_sendfile()
1354 ASSERT_OK(r); in TEST_IMPL()
1361 ASSERT_OK(r); in TEST_IMPL()
1387 ASSERT_OK(r); in TEST_IMPL()
1404 ASSERT_OK(strlen(mkstemp_req3.path)); in TEST_IMPL()
1430 ASSERT_OK(strcmp(buf, test_buf)); in TEST_IMPL()
1476 ASSERT_OK(fstat(file, &t)); in TEST_IMPL()
1477 ASSERT_OK(uv_fs_fstat(NULL, &req, file, NULL)); in TEST_IMPL()
1478 ASSERT_OK(req.result); in TEST_IMPL()
1502 ASSERT_OK(r); in TEST_IMPL()
1503 ASSERT_OK(req.result); in TEST_IMPL()
1509 ASSERT_OK(r); in TEST_IMPL()
1531 ASSERT_OK(s->st_atim.tv_nsec); in TEST_IMPL()
1533 ASSERT_OK(s->st_mtim.tv_nsec); in TEST_IMPL()
1535 ASSERT_OK(s->st_ctim.tv_nsec); in TEST_IMPL()
1566 ASSERT_OK(s->st_atim.tv_nsec); in TEST_IMPL()
1568 ASSERT_OK(s->st_mtim.tv_nsec); in TEST_IMPL()
1570 ASSERT_OK(s->st_ctim.tv_nsec); in TEST_IMPL()
1578 ASSERT_OK(s->st_flags); in TEST_IMPL()
1579 ASSERT_OK(s->st_gen); in TEST_IMPL()
1586 ASSERT_OK(r); in TEST_IMPL()
1592 ASSERT_OK(r); in TEST_IMPL()
1593 ASSERT_OK(req.result); in TEST_IMPL()
1621 ASSERT_OK(res); in TEST_IMPL()
1622 ASSERT_OK(req.result); in TEST_IMPL()
1668 ASSERT_OK(r); in TEST_IMPL()
1683 ASSERT_OK(r); in TEST_IMPL()
1684 ASSERT_OK(req.result); in TEST_IMPL()
1689 ASSERT_OK(r); in TEST_IMPL()
1696 ASSERT_OK(r); in TEST_IMPL()
1697 ASSERT_OK(req.result); in TEST_IMPL()
1702 ASSERT_OK(r); in TEST_IMPL()
1706 ASSERT_OK(r); in TEST_IMPL()
1707 ASSERT_OK(req.result); in TEST_IMPL()
1751 ASSERT_OK(r); in TEST_IMPL()
1752 ASSERT_OK(req.result); in TEST_IMPL()
1760 ASSERT_OK(r); in TEST_IMPL()
1761 ASSERT_OK(req.result); in TEST_IMPL()
1768 ASSERT_OK(r); in TEST_IMPL()
1769 ASSERT_OK(req.result); in TEST_IMPL()
1781 ASSERT_OK(r); in TEST_IMPL()
1793 ASSERT_OK(r); in TEST_IMPL()
1803 ASSERT_OK(r); in TEST_IMPL()
1852 ASSERT_OK(r); in TEST_IMPL()
1853 ASSERT_OK(req.result); in TEST_IMPL()
1860 ASSERT_OK(r); in TEST_IMPL()
1861 ASSERT_OK(req.result); in TEST_IMPL()
1916 ASSERT_OK(r); in TEST_IMPL()
1917 ASSERT_OK(req.result); in TEST_IMPL()
1956 ASSERT_OK(r); in TEST_IMPL()
1957 ASSERT_OK(req.result); in TEST_IMPL()
1962 ASSERT_OK(r); in TEST_IMPL()
1963 ASSERT_OK(req.result); in TEST_IMPL()
1968 ASSERT_OK(r); in TEST_IMPL()
1976 ASSERT_OK(r); in TEST_IMPL()
1983 ASSERT_OK(r); in TEST_IMPL()
1991 ASSERT_OK(r); in TEST_IMPL()
1992 ASSERT_OK(req.result); in TEST_IMPL()
1997 ASSERT_OK(r); in TEST_IMPL()
1998 ASSERT_OK(req.result); in TEST_IMPL()
2003 ASSERT_OK(r); in TEST_IMPL()
2010 ASSERT_OK(r); in TEST_IMPL()
2011 ASSERT_OK(req.result); in TEST_IMPL()
2059 ASSERT_OK(r); in TEST_IMPL()
2060 ASSERT_OK(req.result); in TEST_IMPL()
2074 ASSERT_OK(strcmp(buf, test_buf)); in TEST_IMPL()
2080 ASSERT_OK(r); in TEST_IMPL()
2095 ASSERT_OK(strcmp(buf, test_buf)); in TEST_IMPL()
2121 ASSERT_OK(uv_fs_readlink(loop, &req, "no_such_file", dummy_cb)); in TEST_IMPL()
2122 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
2151 ASSERT_OK(r); in TEST_IMPL()
2152 ASSERT_OK(req.result); in TEST_IMPL()
2173 ASSERT_OK(uv_fs_realpath(loop, &req, "no_such_file", dummy_cb)); in TEST_IMPL()
2174 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
2249 ASSERT_OK(r); in TEST_IMPL()
2250 ASSERT_OK(req.result); in TEST_IMPL()
2264 ASSERT_OK(strcmp(buf, test_buf)); in TEST_IMPL()
2274 ASSERT_OK(r); in TEST_IMPL()
2282 ASSERT_OK(r); in TEST_IMPL()
2283 ASSERT_OK(strcmp(req.ptr, "test_file_symlink")); in TEST_IMPL()
2287 ASSERT_OK(r); in TEST_IMPL()
2289 ASSERT_OK(_stricmp(req.ptr, test_file_abs_buf)); in TEST_IMPL()
2291 ASSERT_OK(strcmp(req.ptr, test_file_abs_buf)); in TEST_IMPL()
2302 ASSERT_OK(r); in TEST_IMPL()
2317 ASSERT_OK(strcmp(buf, test_buf)); in TEST_IMPL()
2327 ASSERT_OK(r); in TEST_IMPL()
2331 ASSERT_OK(r); in TEST_IMPL()
2336 ASSERT_OK(r); in TEST_IMPL()
2399 ASSERT_OK(r); in test_symlink_dir_impl()
2400 ASSERT_OK(req.result); in test_symlink_dir_impl()
2404 ASSERT_OK(r); in test_symlink_dir_impl()
2409 ASSERT_OK(r); in test_symlink_dir_impl()
2427 ASSERT_OK(r); in test_symlink_dir_impl()
2429 ASSERT_OK(strcmp(req.ptr, test_dir + 4)); in test_symlink_dir_impl()
2431 ASSERT_OK(strcmp(req.ptr, test_dir)); in test_symlink_dir_impl()
2436 ASSERT_OK(r); in test_symlink_dir_impl()
2439 ASSERT_OK(_strnicmp(req.ptr, test_dir + 4, test_dir_abs_size - 4)); in test_symlink_dir_impl()
2441 ASSERT_OK(strcmp(req.ptr, test_dir_abs_buf)); in test_symlink_dir_impl()
2451 ASSERT_OK(r); in test_symlink_dir_impl()
2460 ASSERT_OK(r); in test_symlink_dir_impl()
2476 ASSERT_OK(r); in test_symlink_dir_impl()
2595 ASSERT_OK(strcmp(dent.name, "test_file")); in TEST_IMPL()
2632 ASSERT_OK(r); in TEST_IMPL()
2658 ASSERT_OK(uv_fs_lstat(loop, &stat_req, file_path, NULL)); in TEST_IMPL()
2688 ASSERT_OK(r); in TEST_IMPL()
2689 ASSERT_OK(req.result); in TEST_IMPL()
2702 ASSERT_OK(r); in TEST_IMPL()
2729 ASSERT_OK(uv_fs_close(loop, &req, r, NULL)); in TEST_IMPL()
2744 ASSERT_OK(r); in TEST_IMPL()
2745 ASSERT_OK(req.result); in TEST_IMPL()
2760 ASSERT_OK(r); in TEST_IMPL()
2763 ASSERT_OK(r); in TEST_IMPL()
2766 ASSERT_OK(r); in TEST_IMPL()
2769 ASSERT_OK(r); in TEST_IMPL()
2773 ASSERT_OK(r); in TEST_IMPL()
2776 ASSERT_OK(r); in TEST_IMPL()
2779 ASSERT_OK(r); in TEST_IMPL()
2823 ASSERT_OK(r); in TEST_IMPL()
2824 ASSERT_OK(req.result); in TEST_IMPL()
2839 ASSERT_OK(r); in TEST_IMPL()
2884 ASSERT_OK(s); in TEST_IMPL()
2885 ASSERT_OK(req.result); in TEST_IMPL()
2902 ASSERT_OK(r); in TEST_IMPL()
2914 ASSERT_OK(r); in TEST_IMPL()
2959 ASSERT_OK(r); in TEST_IMPL()
2960 ASSERT_OK(req.result); in TEST_IMPL()
2966 ASSERT_OK(r); in TEST_IMPL()
2968 ASSERT_OK(scandir_cb_count); in TEST_IMPL()
3003 ASSERT_OK(r); in TEST_IMPL()
3005 ASSERT_OK(scandir_cb_count); in TEST_IMPL()
3025 ASSERT_OK(r); in TEST_IMPL()
3027 ASSERT_OK(scandir_cb_count); in TEST_IMPL()
3070 ASSERT_OK(r); in TEST_IMPL()
3073 ASSERT_OK(r); in TEST_IMPL()
3075 ASSERT_OK(open_cb_count); in TEST_IMPL()
3106 ASSERT_OK(r); in fs_file_open_append()
3107 ASSERT_OK(close_req.result); in fs_file_open_append()
3123 ASSERT_OK(r); in fs_file_open_append()
3124 ASSERT_OK(close_req.result); in fs_file_open_append()
3138 ASSERT_OK(memcmp(buf, in fs_file_open_append()
3144 ASSERT_OK(r); in fs_file_open_append()
3145 ASSERT_OK(close_req.result); in fs_file_open_append()
3182 ASSERT_OK(r); in TEST_IMPL()
3183 ASSERT_OK(close_req.result); in TEST_IMPL()
3193 ASSERT_OK(r); in TEST_IMPL()
3194 ASSERT_OK(close_req.result); in TEST_IMPL()
3198 ASSERT_OK(r); in TEST_IMPL()
3199 ASSERT_OK(rename_req.result); in TEST_IMPL()
3212 ASSERT_OK(strcmp(buf, test_buf)); in TEST_IMPL()
3216 ASSERT_OK(r); in TEST_IMPL()
3217 ASSERT_OK(close_req.result); in TEST_IMPL()
3271 ASSERT_OK(memcmp(bufs[1].base + 0, bufs[2].base, 128)); in fs_read_bufs()
3272 ASSERT_OK(memcmp(bufs[1].base + 128, bufs[3].base, 190 - 128)); in fs_read_bufs()
3274 ASSERT_OK(uv_fs_close(NULL, &close_req, open_req1.result, NULL)); in fs_read_bufs()
3275 ASSERT_OK(close_req.result); in fs_read_bufs()
3312 ASSERT_OK(r); in fs_read_file_eof()
3313 ASSERT_OK(close_req.result); in fs_read_file_eof()
3327 ASSERT_OK(strcmp(buf, test_buf)); in fs_read_file_eof()
3333 ASSERT_OK(r); in fs_read_file_eof()
3334 ASSERT_OK(read_req.result); in fs_read_file_eof()
3338 ASSERT_OK(r); in fs_read_file_eof()
3339 ASSERT_OK(close_req.result); in fs_read_file_eof()
3378 ASSERT_OK(r); in fs_write_multiple_bufs()
3379 ASSERT_OK(close_req.result); in fs_write_multiple_bufs()
3393 ASSERT_OK(lseek(open_req1.result, 0, SEEK_CUR)); in fs_write_multiple_bufs()
3397 ASSERT_OK(strcmp(buf, test_buf)); in fs_write_multiple_bufs()
3398 ASSERT_OK(strcmp(buf2, test_buf2)); in fs_write_multiple_bufs()
3403 ASSERT_OK(r); in fs_write_multiple_bufs()
3404 ASSERT_OK(read_req.result); in fs_write_multiple_bufs()
3421 ASSERT_OK(strcmp(buf, test_buf)); in fs_write_multiple_bufs()
3422 ASSERT_OK(strcmp(buf2, test_buf2)); in fs_write_multiple_bufs()
3428 ASSERT_OK(r); in fs_write_multiple_bufs()
3429 ASSERT_OK(read_req.result); in fs_write_multiple_bufs()
3433 ASSERT_OK(r); in fs_write_multiple_bufs()
3434 ASSERT_OK(close_req.result); in fs_write_multiple_bufs()
3501 ASSERT_OK(r); in fs_write_alotof_bufs()
3502 ASSERT_OK(close_req.result); in fs_write_alotof_bufs()
3518 ASSERT_OK(strncmp(buffer + index * sizeof(test_buf), in fs_write_alotof_bufs()
3535 ASSERT_OK(r); in fs_write_alotof_bufs()
3536 ASSERT_OK(read_req.result); in fs_write_alotof_bufs()
3540 ASSERT_OK(r); in fs_write_alotof_bufs()
3541 ASSERT_OK(close_req.result); in fs_write_alotof_bufs()
3630 ASSERT_OK(strncmp(buffer + index * sizeof(test_buf), in fs_write_alotof_bufs_with_offset()
3638 ASSERT_OK(r); in fs_write_alotof_bufs_with_offset()
3651 ASSERT_OK(r); in fs_write_alotof_bufs_with_offset()
3652 ASSERT_OK(read_req.result); in fs_write_alotof_bufs_with_offset()
3656 ASSERT_OK(r); in fs_write_alotof_bufs_with_offset()
3657 ASSERT_OK(close_req.result); in fs_write_alotof_bufs_with_offset()
3680 ASSERT_OK(r); in TEST_IMPL()
3717 ASSERT_OK(r); in TEST_IMPL()
3826 ASSERT_OK(uv_signal_init(loop, &signal)); in test_fs_partial()
3827 ASSERT_OK(uv_signal_start(&signal, sig_func, SIGUSR1)); in test_fs_partial()
3829 ASSERT_OK(pipe(pipe_fds)); in test_fs_partial()
3832 ASSERT_OK(uv_thread_create(&thread, thread_main, &ctx)); in test_fs_partial()
3861 ASSERT_OK(uv_thread_join(&thread)); in test_fs_partial()
3865 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in test_fs_partial()
3867 ASSERT_OK(close(pipe_fds[1])); in test_fs_partial()
3873 ASSERT_OK(result); in test_fs_partial()
3876 ASSERT_OK(close(pipe_fds[0])); in test_fs_partial()
3985 ASSERT_OK(r); in TEST_IMPL()
3986 ASSERT_OK(close_req.result); in TEST_IMPL()
4031 ASSERT_OK(r); in TEST_IMPL()
4032 ASSERT_OK(close_req.result); in TEST_IMPL()
4059 ASSERT_OK(lseek(open_req1.result, 0, SEEK_CUR)); in TEST_IMPL()
4065 ASSERT_OK(strcmp(buf, test_buf)); in TEST_IMPL()
4066 ASSERT_OK(lseek(open_req1.result, 0, SEEK_CUR)); in TEST_IMPL()
4070 ASSERT_OK(r); in TEST_IMPL()
4098 ASSERT_OK(r); in fs_file_pos_common()
4109 ASSERT_OK(r); in fs_file_pos_common()
4118 ASSERT_OK(r); in fs_file_pos_close_check()
4130 ASSERT_OK(strncmp(buf, contents, size)); in fs_file_pos_close_check()
4134 ASSERT_OK(r); in fs_file_pos_close_check()
4166 ASSERT_OK(r); in fs_file_pos_write()
4352 ASSERT_OK(r); in TEST_IMPL()
4353 ASSERT_OK(close_req.result); in TEST_IMPL()
4366 ASSERT_OK(r); in TEST_IMPL()
4367 ASSERT_OK(close_req.result); in TEST_IMPL()
4402 ASSERT_OK(r); in TEST_IMPL()
4403 ASSERT_OK(close_req.result); in TEST_IMPL()
4455 ASSERT_OK(r); in TEST_IMPL()
4472 ASSERT_OK(r); in TEST_IMPL()
4473 ASSERT_OK(close_req.result); in TEST_IMPL()
4506 ASSERT_OK(r); in TEST_IMPL()
4530 ASSERT_OK(r); in TEST_IMPL()
4543 ASSERT_OK(r); in TEST_IMPL()
4544 ASSERT_OK(req.result); in TEST_IMPL()
4547 ASSERT_OK(r); in TEST_IMPL()
4580 ASSERT_OK(r); in TEST_IMPL()
4586 ASSERT_OK(r); in TEST_IMPL()
4621 ASSERT_OK(r); in TEST_IMPL()
4627 ASSERT_OK(r); in TEST_IMPL()
4652 ASSERT_OK(r); in TEST_IMPL()
4675 ASSERT_OK(r); in TEST_IMPL()