/third_party/libuv/test/ |
D | test-fork.c | 50 ASSERT(0 == status); in socket_cb() 52 ASSERT(UV_READABLE == (events & UV_READABLE)); in socket_cb() 55 ASSERT(cnt == socket_cb_read_size); in socket_cb() 69 ASSERT(0 == uv_timer_init(loop, &timer_handle)); in run_timer_loop_once() 70 ASSERT(0 == uv_timer_start(&timer_handle, timer_cb, 1, 0)); in run_timer_loop_once() 71 ASSERT(0 == uv_run(loop, UV_RUN_DEFAULT)); in run_timer_loop_once() 72 ASSERT(1 == timer_cb_called); in run_timer_loop_once() 85 ASSERT(child_pid == waited_pid); in assert_wait_child() 86 ASSERT(WIFEXITED(child_stat)); /* Clean exit, not a signal. */ in assert_wait_child() 87 ASSERT(!WIFSIGNALED(child_stat)); in assert_wait_child() [all …]
|
D | test-fs.c | 167 ASSERT(r == 0); in check_permission() 168 ASSERT(req.result == 0); in check_permission() 176 ASSERT((s->st_mode & 0777) & mode); in check_permission() 178 ASSERT((s->st_mode & 0777) == mode); in check_permission() 192 ASSERT(req->fs_type == UV_FS_LINK); in link_cb() 193 ASSERT(req->result == 0); in link_cb() 200 ASSERT(req->fs_type == UV_FS_SYMLINK); in symlink_cb() 201 ASSERT(req->result == 0); in symlink_cb() 207 ASSERT(req->fs_type == UV_FS_READLINK); in readlink_cb() 208 ASSERT(req->result == 0); in readlink_cb() [all …]
|
D | test-tty.c | 60 ASSERT(handle != INVALID_HANDLE_VALUE); in TEST_IMPL() 70 ASSERT(handle != INVALID_HANDLE_VALUE); in TEST_IMPL() 89 ASSERT(ttyin_fd >= 0); in TEST_IMPL() 90 ASSERT(ttyout_fd >= 0); in TEST_IMPL() 92 ASSERT(UV_UNKNOWN_HANDLE == uv_guess_handle(-1)); in TEST_IMPL() 94 ASSERT(UV_TTY == uv_guess_handle(ttyin_fd)); in TEST_IMPL() 95 ASSERT(UV_TTY == uv_guess_handle(ttyout_fd)); in TEST_IMPL() 98 ASSERT(r == 0); in TEST_IMPL() 99 ASSERT(uv_is_readable((uv_stream_t*) &tty_in)); in TEST_IMPL() 100 ASSERT(!uv_is_writable((uv_stream_t*) &tty_in)); in TEST_IMPL() [all …]
|
D | test-timer.c | 43 ASSERT(0 == uv_is_active(handle)); in once_close_cb() 53 ASSERT(0 == uv_is_active((uv_handle_t*) handle)); in once_cb() 67 ASSERT(0 == uv_is_active(handle)); in twice_close_cb() 76 ASSERT(0 == uv_is_active((uv_handle_t*) handle)); in twice_cb() 98 ASSERT(1 == uv_is_active((uv_handle_t*) handle)); in repeat_cb() 121 ASSERT(0 < start_time); in TEST_IMPL() 127 ASSERT(r == 0); in TEST_IMPL() 129 ASSERT(r == 0); in TEST_IMPL() 134 ASSERT(r == 0); in TEST_IMPL() 136 ASSERT(r == 0); in TEST_IMPL() [all …]
|
D | test-fs-event.c | 74 ASSERT(0 && "should never be called"); in fs_event_fail() 81 ASSERT(r == 0 || r == UV_EEXIST); in create_dir() 91 ASSERT(r >= 0); in create_file() 95 ASSERT(r == 0); in create_file() 106 ASSERT(r >= 0); in touch_file() 112 ASSERT(r >= 0); in touch_file() 116 ASSERT(r == 0); in touch_file() 129 ASSERT(0 && "fail_cb called"); in fail_cb() 135 ASSERT(handle == &fs_event); in fs_event_cb_dir() 136 ASSERT(status == 0); in fs_event_cb_dir() [all …]
|
D | test-fs-poll.c | 59 ASSERT((fp = fopen(FIXTURE, "w+"))); in touch_file() 88 ASSERT(0 && "fail_cb called"); in poll_cb_fail() 106 ASSERT(handle == &poll_handle); in poll_cb() 107 ASSERT(1 == uv_is_active((uv_handle_t*) handle)); in poll_cb() 113 ASSERT(status == UV_ENOENT); in poll_cb() 114 ASSERT(0 == memcmp(prev, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb() 115 ASSERT(0 == memcmp(curr, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb() 120 ASSERT(status == 0); in poll_cb() 121 ASSERT(0 == memcmp(prev, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb() 122 ASSERT(0 != memcmp(curr, &zero_statbuf, sizeof(zero_statbuf))); in poll_cb() [all …]
|
D | test-fs-readdir.c | 50 ASSERT(req == &closedir_req); in empty_closedir_cb() 51 ASSERT(req->fs_type == UV_FS_CLOSEDIR); in empty_closedir_cb() 52 ASSERT(req->result == 0); in empty_closedir_cb() 61 ASSERT(req == &readdir_req); in empty_readdir_cb() 62 ASSERT(req->fs_type == UV_FS_READDIR); in empty_readdir_cb() 63 ASSERT(req->result == 0); in empty_readdir_cb() 70 ASSERT(r == 0); in empty_readdir_cb() 77 ASSERT(req == &opendir_req); in empty_opendir_cb() 78 ASSERT(req->fs_type == UV_FS_OPENDIR); in empty_opendir_cb() 79 ASSERT(req->result == 0); in empty_opendir_cb() [all …]
|
D | test-spawn.c | 68 ASSERT(exit_status == 1); in exit_cb() 69 ASSERT(term_signal == 0); in exit_cb() 89 ASSERT(exit_status == 1); in kill_cb() 91 ASSERT(exit_status == 0); in kill_cb() 99 ASSERT(no_term_signal || term_signal == SIGTERM || term_signal == SIGKILL); in kill_cb() 101 ASSERT(no_term_signal || term_signal == SIGTERM); in kill_cb() 111 ASSERT(err == UV_ESRCH); in kill_cb() 133 ASSERT(nread == UV_EOF); in on_read() 146 ASSERT(status == 0); in write_cb() 152 ASSERT(status == 0); in write_null_cb() [all …]
|
D | test-threadpool-cancel.c | 76 ASSERT(0 == uv_sem_init(pause_sems + i, 0)); in saturate_threadpool() 77 ASSERT(0 == uv_queue_work(loop, pause_reqs + i, work_cb, done_cb)); in saturate_threadpool() 91 ASSERT(req->result == UV_ECANCELED); in fs_cb() 100 ASSERT(status == UV_EAI_CANCELED); in getaddrinfo_cb() 110 ASSERT(status == UV_EAI_CANCELED); in getnameinfo_cb() 117 ASSERT(0 && "work2_cb called"); in work2_cb() 122 ASSERT(status == UV_ECANCELED); in done2_cb() 136 ASSERT(0 == uv_cancel(req)); in timer_cb() 146 ASSERT(status == UV_ECANCELED); in nop_done_cb() 156 ASSERT(status == UV_ECANCELED); in nop_random_cb() [all …]
|
D | test-tcp-open.c | 49 ASSERT(r == 0); in startup() 59 ASSERT(sock != INVALID_SOCKET); in create_tcp_socket() 61 ASSERT(sock >= 0); in create_tcp_socket() 69 ASSERT(r == 0); in create_tcp_socket() 84 ASSERT(r == 0); in close_socket() 92 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb() 105 ASSERT(req == &shutdown_req); in shutdown_cb() 106 ASSERT(status == 0); in shutdown_cb() 117 ASSERT(nread == 4); in read_cb() 118 ASSERT(memcmp("PING", buf->base, nread) == 0); in read_cb() [all …]
|
D | test-signal.c | 34 ASSERT(uv_kill(pid, -1) == UV_EINVAL); in TEST_IMPL() 37 ASSERT(uv_kill(pid, NSIG) == UV_EINVAL); in TEST_IMPL() 39 ASSERT(uv_kill(pid, 4096) == UV_EINVAL); in TEST_IMPL() 58 ASSERT(uv_signal_start(&signal, signum_test_cb, 0) == UV_EINVAL); in TEST_IMPL() 59 ASSERT(uv_signal_start(&signal, signum_test_cb, SIGINT) == 0); in TEST_IMPL() 60 ASSERT(uv_signal_start(&signal, signum_test_cb, SIGBREAK) == 0); in TEST_IMPL() 61 ASSERT(uv_signal_start(&signal, signum_test_cb, SIGHUP) == 0); in TEST_IMPL() 62 ASSERT(uv_signal_start(&signal, signum_test_cb, SIGWINCH) == 0); in TEST_IMPL() 63 ASSERT(uv_signal_start(&signal, signum_test_cb, SIGILL) == 0); in TEST_IMPL() 64 ASSERT(uv_signal_start(&signal, signum_test_cb, SIGABRT_COMPAT) == 0); in TEST_IMPL() [all …]
|
D | test-pipe-getsockname.c | 48 ASSERT(handle == (uv_handle_t*) &pipe_client || in pipe_close_cb() 59 ASSERT(req == &connect_req); in pipe_client_connect_cb() 60 ASSERT(status == 0); in pipe_client_connect_cb() 64 ASSERT(r == 0); in pipe_client_connect_cb() 66 ASSERT(buf[len - 1] != 0); in pipe_client_connect_cb() 67 ASSERT(memcmp(buf, TEST_PIPENAME, len) == 0); in pipe_client_connect_cb() 71 ASSERT(r == 0 && len == 0); in pipe_client_connect_cb() 85 ASSERT(status == 0); in pipe_server_connection_cb() 102 ASSERT(r == 0); in TEST_IMPL() 106 ASSERT(r == UV_EBADF); in TEST_IMPL() [all …]
|
D | test-tcp-close-reset.c | 65 ASSERT(r == 0); in do_write() 75 ASSERT(0 == uv_shutdown(&shutdown_req, (uv_stream_t*) handle, shutdown_cb)); in do_close() 76 ASSERT(UV_EINVAL == uv_tcp_close_reset(handle, close_cb)); in do_close() 88 ASSERT(0 == uv_tcp_close_reset(handle, close_cb)); in do_close() 89 ASSERT(UV_ENOTCONN == uv_shutdown(&shutdown_req, (uv_stream_t*) handle, shutdown_cb)); in do_close() 102 ASSERT((uv_tcp_t*)stream == &tcp_client); in read_cb2() 109 ASSERT(conn_req == &connect_req); in connect_cb() 119 ASSERT(close_cb_called == 0); in write_cb() 120 ASSERT(req->handle == (uv_stream_t*)&tcp_client); in write_cb() 127 ASSERT(handle == (uv_handle_t*) &tcp_client); in close_cb() [all …]
|
D | test-poll-oob.c | 73 ASSERT(0 == uv_fileno((uv_handle_t*)handle, &fd)); in poll_cb() 80 ASSERT(n >= 0 || errno != EINVAL); in poll_cb() 82 ASSERT(0 == uv_poll_stop(&poll_req[0])); in poll_cb() 83 ASSERT(0 == uv_poll_start(&poll_req[0], in poll_cb() 92 ASSERT(n >= 0 || errno != EINVAL); in poll_cb() 94 ASSERT(strncmp(buffer, "world", n) == 0); in poll_cb() 95 ASSERT(5 == n); in poll_cb() 99 ASSERT(n == 4); in poll_cb() 100 ASSERT(strncmp(buffer, "hello", n) == 0); in poll_cb() 107 ASSERT(n == 5); in poll_cb() [all …]
|
D | test-tcp-bind-error.c | 39 ASSERT(status == UV_EADDRINUSE); in connect_cb() 56 ASSERT(0 == uv_tcp_init(uv_default_loop(), &conn)); in TEST_IMPL() 57 ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT, &addr)); in TEST_IMPL() 58 ASSERT(0 == uv_tcp_bind(&conn, (const struct sockaddr*) &addr, 0)); in TEST_IMPL() 60 ASSERT(0 == uv_ip4_addr("127.0.0.1", TEST_PORT + 1, &addr)); in TEST_IMPL() 61 ASSERT(0 == uv_tcp_connect(&req, in TEST_IMPL() 67 ASSERT(UV_EADDRINUSE == uv_tcp_getsockname(&conn, in TEST_IMPL() 71 ASSERT(0 == uv_run(uv_default_loop(), UV_RUN_DEFAULT)); in TEST_IMPL() 72 ASSERT(connect_cb_called == 1); in TEST_IMPL() 73 ASSERT(close_cb_called == 1); in TEST_IMPL() [all …]
|
D | test-udp-open.c | 44 ASSERT(r == 0); in startup() 54 ASSERT(sock != INVALID_SOCKET); in create_udp_socket() 56 ASSERT(sock >= 0); in create_udp_socket() 64 ASSERT(r == 0); in create_udp_socket() 79 ASSERT(r == 0); in close_socket() 87 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb() 107 ASSERT(0 && "unexpected error"); in recv_cb() 116 ASSERT(flags == 0); in recv_cb() 119 ASSERT(nread == 4); in recv_cb() 120 ASSERT(memcmp("PING", buf->base, nread) == 0); in recv_cb() [all …]
|
D | test-udp-send-and-recv.c | 30 ASSERT((uv_udp_t*)(handle) == &server || (uv_udp_t*)(handle) == &client) 49 ASSERT(suggested_size <= sizeof(slab)); in alloc_cb() 57 ASSERT(1 == uv_is_closing(handle)); in close_cb() 68 ASSERT(flags == 0); in cl_recv_cb() 71 ASSERT(0 && "unexpected error"); in cl_recv_cb() 81 ASSERT(nread == 4); in cl_recv_cb() 82 ASSERT(!memcmp("PONG", buf->base, nread)); in cl_recv_cb() 94 ASSERT(status == 0); in cl_send_cb() 98 ASSERT(r == 0); in cl_send_cb() 106 ASSERT(status == 0); in sv_send_cb() [all …]
|
D | test-shutdown-eof.c | 49 ASSERT((uv_tcp_t*)t == &tcp); in read_cb() 57 ASSERT(nread == 1); in read_cb() 58 ASSERT(!got_eof); in read_cb() 59 ASSERT(buf->base[0] == 'Q'); in read_cb() 64 ASSERT(nread == UV_EOF); in read_cb() 75 ASSERT(req == &shutdown_req); in shutdown_cb() 77 ASSERT(called_connect_cb == 1); in shutdown_cb() 78 ASSERT(!got_eof); in shutdown_cb() 79 ASSERT(called_tcp_close_cb == 0); in shutdown_cb() 80 ASSERT(called_timer_close_cb == 0); in shutdown_cb() [all …]
|
D | test-timer-from-check.c | 35 ASSERT(0 == uv_prepare_stop(&prepare_handle)); in prepare_cb() 36 ASSERT(0 == prepare_cb_called); in prepare_cb() 37 ASSERT(1 == check_cb_called); in prepare_cb() 38 ASSERT(0 == timer_cb_called); in prepare_cb() 44 ASSERT(0 == uv_timer_stop(&timer_handle)); in timer_cb() 45 ASSERT(1 == prepare_cb_called); in timer_cb() 46 ASSERT(1 == check_cb_called); in timer_cb() 47 ASSERT(0 == timer_cb_called); in timer_cb() 53 ASSERT(0 == uv_check_stop(&check_handle)); in check_cb() 54 ASSERT(0 == uv_timer_stop(&timer_handle)); /* Runs before timer_cb. */ in check_cb() [all …]
|
D | test-idna.c | 34 ASSERT(0 == uv__utf8_decode1(&p, b + sizeof(b))); in TEST_IMPL() 35 ASSERT(p == b + 1); in TEST_IMPL() 36 ASSERT(127 == uv__utf8_decode1(&p, b + sizeof(b))); in TEST_IMPL() 37 ASSERT(p == b + 2); in TEST_IMPL() 42 ASSERT(128 == uv__utf8_decode1(&p, b + sizeof(b))); in TEST_IMPL() 43 ASSERT(p == b + 2); in TEST_IMPL() 44 ASSERT(0x7FF == uv__utf8_decode1(&p, b + sizeof(b))); in TEST_IMPL() 45 ASSERT(p == b + 4); in TEST_IMPL() 50 ASSERT(0x800 == uv__utf8_decode1(&p, b + sizeof(b))); in TEST_IMPL() 51 ASSERT(p == b + 3); in TEST_IMPL() [all …]
|
D | test-loop-handles.c | 111 ASSERT(handle == &timer_handle); in timer_cb() 119 ASSERT(handle == (uv_handle_t*)&idle_2_handle); in idle_2_close_cb() 121 ASSERT(idle_2_is_active); in idle_2_close_cb() 132 ASSERT(handle == &idle_2_handle); in idle_2_cb() 147 ASSERT(idles_1_active > 0); in idle_1_cb() 152 ASSERT(r == 0); in idle_1_cb() 154 ASSERT(r == 0); in idle_1_cb() 163 ASSERT(r == 0); in idle_1_cb() 182 ASSERT(handle == (uv_handle_t*)&prepare_1_handle); in prepare_1_close_cb() 191 ASSERT(handle == (uv_handle_t*)&check_handle); in check_close_cb() [all …]
|
D | test-thread.c | 74 ASSERT(r == 0); in getaddrinfo_do() 99 ASSERT(r == 0); in fs_do() 114 ASSERT(arg == (void *) 42); in thread_entry() 124 ASSERT(r == 0); in TEST_IMPL() 127 ASSERT(r == 0); in TEST_IMPL() 129 ASSERT(thread_called == 1); in TEST_IMPL() 138 ASSERT(arg == uv_key_get(&tls_key)); in tls_thread() 147 ASSERT(0 == uv_key_create(&tls_key)); in TEST_IMPL() 150 ASSERT(name == uv_key_get(&tls_key)); in TEST_IMPL() 151 ASSERT(0 == uv_thread_create(threads + 0, tls_thread, threads + 0)); in TEST_IMPL() [all …]
|
D | test-env-vars.c | 38 ASSERT(r == UV_EINVAL); in TEST_IMPL() 40 ASSERT(r == UV_EINVAL); in TEST_IMPL() 42 ASSERT(r == UV_EINVAL); in TEST_IMPL() 47 ASSERT(r == UV_EINVAL); in TEST_IMPL() 49 ASSERT(r == UV_EINVAL); in TEST_IMPL() 51 ASSERT(r == UV_EINVAL); in TEST_IMPL() 54 ASSERT(r == UV_EINVAL); in TEST_IMPL() 58 ASSERT(r == UV_EINVAL); in TEST_IMPL() 62 ASSERT(r == 0); in TEST_IMPL() 68 ASSERT(r == 0); in TEST_IMPL() [all …]
|
D | test-poll.c | 109 ASSERT(sock != INVALID_SOCKET); in create_bound_socket() 111 ASSERT(sock >= 0); in create_bound_socket() 119 ASSERT(r == 0); in create_bound_socket() 124 ASSERT(r == 0); in create_bound_socket() 140 ASSERT(r == 0 || errno == ECONNRESET); in close_socket() 166 ASSERT(r == 0); in create_connection_context() 171 ASSERT(r == 0); in create_connection_context() 182 ASSERT(context->read == TRANSFER_BYTES); in connection_close_cb() 184 ASSERT(context->read == 0); in connection_close_cb() 188 ASSERT(context->sent == TRANSFER_BYTES); in connection_close_cb() [all …]
|
/third_party/mesa3d/src/intel/isl/tests/ |
D | isl_aux_info_test.cpp | 46 E(CLEAR, NONE, true, ASSERT); in TEST() 48 E(PARTIAL_CLEAR, NONE, true, ASSERT); in TEST() 50 E(COMPRESSED_CLEAR, NONE, true, ASSERT); in TEST() 52 E(COMPRESSED_NO_CLEAR, NONE, true, ASSERT); in TEST() 54 E(RESOLVED, NONE, true, ASSERT); in TEST() 56 E(PASS_THROUGH, NONE, true, ASSERT); in TEST() 58 E(AUX_INVALID, NONE, true, ASSERT); in TEST() 79 E(CLEAR, MC, false, ASSERT); in TEST() 80 E(CLEAR, MC, true, ASSERT); in TEST() 81 E(PARTIAL_CLEAR, MC, false, ASSERT); in TEST() [all …]
|