Home
last modified time | relevance | path

Searched refs:ASSERT_OK (Results 1 – 25 of 184) sorted by relevance

12345678

/libuv/test/
H A Dtest-timer.c129 ASSERT_OK(r); in TEST_IMPL()
131 ASSERT_OK(r); in TEST_IMPL()
136 ASSERT_OK(r); in TEST_IMPL()
138 ASSERT_OK(r); in TEST_IMPL()
142 ASSERT_OK(r); in TEST_IMPL()
144 ASSERT_OK(r); in TEST_IMPL()
146 ASSERT_OK(r); in TEST_IMPL()
169 ASSERT_OK(r); in TEST_IMPL()
171 ASSERT_OK(r); in TEST_IMPL()
173 ASSERT_OK(r); in TEST_IMPL()
[all …]
H A Dtest-fork.c54 ASSERT_OK(status); in socket_cb()
430 ASSERT_OK(r); in create_file()
452 ASSERT_OK(r); in touch_file()
494 ASSERT_OK(r); in assert_watch_file_current_dir()
501 ASSERT_OK(r); in assert_watch_file_current_dir()
504 ASSERT_OK(r); in assert_watch_file_current_dir()
507 ASSERT_OK(r); in assert_watch_file_current_dir()
635 ASSERT_OK(r); in TEST_IMPL()
640 ASSERT_OK(r); in TEST_IMPL()
643 ASSERT_OK(r); in TEST_IMPL()
[all …]
H A Dtest-threadpool-cancel.c212 ASSERT_OK(r); in TEST_IMPL()
215 ASSERT_OK(r); in TEST_IMPL()
218 ASSERT_OK(r); in TEST_IMPL()
221 ASSERT_OK(r); in TEST_IMPL()
241 ASSERT_OK(r); in TEST_IMPL()
248 ASSERT_OK(r); in TEST_IMPL()
251 ASSERT_OK(r); in TEST_IMPL()
254 ASSERT_OK(r); in TEST_IMPL()
257 ASSERT_OK(r); in TEST_IMPL()
275 ASSERT_OK(uv_random(loop, in TEST_IMPL()
[all …]
H A Dtest-timer-from-check.c35 ASSERT_OK(uv_prepare_stop(&prepare_handle)); in prepare_cb()
36 ASSERT_OK(prepare_cb_called); in prepare_cb()
38 ASSERT_OK(timer_cb_called); in prepare_cb()
44 ASSERT_OK(uv_timer_stop(&timer_handle)); in timer_cb()
47 ASSERT_OK(timer_cb_called); in timer_cb()
53 ASSERT_OK(uv_check_stop(&check_handle)); in check_cb()
57 ASSERT_OK(prepare_cb_called); in check_cb()
58 ASSERT_OK(check_cb_called); in check_cb()
59 ASSERT_OK(timer_cb_called); in check_cb()
67 ASSERT_OK(uv_check_start(&check_handle, check_cb)); in TEST_IMPL()
[all …]
H A Dtest-tcp-close-reset.c65 ASSERT_OK(r); in do_write()
81 ASSERT_OK(r); in do_close()
177 ASSERT_OK(r); in start_server()
180 ASSERT_OK(r); in start_server()
183 ASSERT_OK(r); in start_server()
194 ASSERT_OK(r); in do_connect()
200 ASSERT_OK(r); in do_connect()
224 ASSERT_OK(r); in TEST_IMPL()
251 ASSERT_OK(r); in TEST_IMPL()
278 ASSERT_OK(r); in TEST_IMPL()
[all …]
H A Dtest-fs-event.c80 ASSERT_OK(r); in create_file()
101 ASSERT_OK(r); in touch_file()
416 ASSERT_OK(r); in TEST_IMPL()
418 ASSERT_OK(r); in TEST_IMPL()
420 ASSERT_OK(r); in TEST_IMPL()
422 ASSERT_OK(r); in TEST_IMPL()
459 ASSERT_OK(r); in TEST_IMPL()
464 ASSERT_OK(r); in TEST_IMPL()
466 ASSERT_OK(r); in TEST_IMPL()
468 ASSERT_OK(r); in TEST_IMPL()
[all …]
H A Dtest-metrics.c90 ASSERT_OK(uv_loop_init(&loop)); in metrics_routine_cb()
92 ASSERT_OK(uv_timer_init(&loop, &timer)); in metrics_routine_cb()
95 ASSERT_OK(uv_run(&loop, UV_RUN_DEFAULT)); in metrics_routine_cb()
107 ASSERT_OK(uv_loop_close(&loop)); in metrics_routine_cb()
179 ASSERT_OK(uv_fs_close(uv_default_loop(), in write_cb()
198 ASSERT_OK(uv_fs_write(uv_default_loop(), in create_cb()
217 ASSERT_OK(uv_fs_open(uv_default_loop(), in prepare_cb()
339 ASSERT_OK(uv_fs_write(uv_default_loop(), in TEST_IMPL()
346 ASSERT_OK(uv_fs_stat(uv_default_loop(), in TEST_IMPL()
350 ASSERT_OK(uv_fs_stat(uv_default_loop(), in TEST_IMPL()
[all …]
H A Dtest-ipc.c77 ASSERT_OK(r); in on_connection()
80 ASSERT_OK(r); in on_connection()
129 ASSERT_OK(r); in make_many_connections()
291 ASSERT_OK(r); in spawn_helper()
296 ASSERT_OK(r); in spawn_helper()
318 ASSERT_OK(r); in spawn_helper()
388 ASSERT_OK(r); in on_read_connection()
391 ASSERT_OK(r); in on_read_connection()
400 ASSERT_OK(r); in on_read_connection()
403 ASSERT_OK(r); in on_read_connection()
[all …]
H A Dtest-thread.c74 ASSERT_OK(r); in getaddrinfo_do()
83 ASSERT_OK(status); in getaddrinfo_cb()
97 ASSERT_OK(r); in fs_do()
118 ASSERT_OK(uv_loop_init(&loop)); in do_work()
135 ASSERT_OK(uv_loop_close(&loop)); in do_work()
151 ASSERT_OK(r); in TEST_IMPL()
154 ASSERT_OK(r); in TEST_IMPL()
179 ASSERT_OK(r); in TEST_IMPL()
184 ASSERT_OK(r); in TEST_IMPL()
204 ASSERT_OK(uv_key_create(&tls_key)); in TEST_IMPL()
[all …]
H A Dtest-fs-poll.c120 ASSERT_OK(status); in poll_cb()
127 ASSERT_OK(status); in poll_cb()
134 ASSERT_OK(status); in poll_cb()
161 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
187 ASSERT_OK(memcmp(buf, FIXTURE, len)); in TEST_IMPL()
191 ASSERT_OK(uv_run(loop, UV_RUN_DEFAULT)); in TEST_IMPL()
206 ASSERT_OK(uv_loop_init(&loop)); in TEST_IMPL()
226 ASSERT_OK(uv_loop_init(&loop)); in TEST_IMPL()
250 ASSERT_OK(uv_loop_init(&loop)); in TEST_IMPL()
274 ASSERT_OK(uv_loop_init(&loop)); in TEST_IMPL()
[all …]
H A Dtest-udp-open.c44 ASSERT_OK(r); in startup()
79 ASSERT_OK(r); in close_socket()
123 ASSERT_OK(r); in recv_cb()
151 ASSERT_OK(r); in TEST_IMPL()
154 ASSERT_OK(r); in TEST_IMPL()
157 ASSERT_OK(r); in TEST_IMPL()
160 ASSERT_OK(r); in TEST_IMPL()
168 ASSERT_OK(r); in TEST_IMPL()
206 ASSERT_OK(r); in TEST_IMPL()
209 ASSERT_OK(r); in TEST_IMPL()
[all …]
H A Dtest-poll-oob.c82 ASSERT_OK(uv_poll_stop(&poll_req[0])); in poll_cb()
83 ASSERT_OK(uv_poll_start(&poll_req[0], in poll_cb()
122 ASSERT_OK(strncmp(buffer, "foo", n)); in poll_cb()
138 ASSERT_OK(status); in connection_cb()
147 ASSERT_OK(uv_poll_start(&poll_req[0], in connection_cb()
150 ASSERT_OK(uv_poll_start(&poll_req[1], in connection_cb()
163 ASSERT_OK(uv_idle_start(&idle, idle_cb)); in connection_cb()
177 ASSERT_OK(uv_tcp_init(loop, &peer_handle)); in TEST_IMPL()
178 ASSERT_OK(uv_idle_init(loop, &idle)); in TEST_IMPL()
191 ASSERT_OK(r); in TEST_IMPL()
[all …]
H A Dtest-tcp-open.c49 ASSERT_OK(r); in startup()
84 ASSERT_OK(r); in close_socket()
169 ASSERT_OK(r); in write1_cb()
180 ASSERT_OK(r); in timer_cb()
197 ASSERT_OK(r); in connect_cb()
201 ASSERT_OK(r); in connect_cb()
205 ASSERT_OK(r); in connect_cb()
221 ASSERT_OK(r); in connect1_cb()
224 ASSERT_OK(r); in connect1_cb()
228 ASSERT_OK(r); in connect1_cb()
[all …]
H A Dtest-tcp-bind-error.c87 ASSERT_OK(r); in TEST_IMPL()
89 ASSERT_OK(r); in TEST_IMPL()
92 ASSERT_OK(r); in TEST_IMPL()
94 ASSERT_OK(r); in TEST_IMPL()
97 ASSERT_OK(r); in TEST_IMPL()
121 ASSERT_OK(r); in TEST_IMPL()
146 ASSERT_OK(r); in TEST_IMPL()
171 ASSERT_OK(r); in TEST_IMPL()
197 ASSERT_OK(r); in TEST_IMPL()
199 ASSERT_OK(r); in TEST_IMPL()
[all …]
H A Dtest-tcp-oob.c65 ASSERT_OK(uv_fileno((uv_handle_t*)handle, &fd)); in read_cb()
66 ASSERT_OK(uv_idle_start(&idle, idle_cb)); in read_cb()
79 ASSERT_OK(status); in connect_cb()
87 ASSERT_OK(status); in connection_cb()
120 ASSERT_OK(uv_tcp_init(loop, &server_handle)); in TEST_IMPL()
121 ASSERT_OK(uv_tcp_init(loop, &client_handle)); in TEST_IMPL()
122 ASSERT_OK(uv_tcp_init(loop, &peer_handle)); in TEST_IMPL()
123 ASSERT_OK(uv_idle_init(loop, &idle)); in TEST_IMPL()
128 ASSERT_OK(uv_tcp_nodelay(&client_handle, 1)); in TEST_IMPL()
130 ASSERT_OK(uv_tcp_connect(&connect_req, in TEST_IMPL()
[all …]
H A Dtest-tcp-unexpected-read.c64 ASSERT_OK(status); in connect_cb()
70 ASSERT_OK(status); in write_cb()
79 ASSERT_OK(status); in connection_cb()
94 ASSERT_OK(uv_timer_init(loop, &timer_handle)); in TEST_IMPL()
96 ASSERT_OK(uv_check_init(loop, &check_handle)); in TEST_IMPL()
97 ASSERT_OK(uv_check_start(&check_handle, check_cb)); in TEST_IMPL()
98 ASSERT_OK(uv_tcp_init(loop, &server_handle)); in TEST_IMPL()
99 ASSERT_OK(uv_tcp_init(loop, &client_handle)); in TEST_IMPL()
100 ASSERT_OK(uv_tcp_init(loop, &peer_handle)); in TEST_IMPL()
103 ASSERT_OK(uv_tcp_connect(&connect_req, in TEST_IMPL()
[all …]
H A Dtest-pipe-getsockname.c59 ASSERT_OK(r); in pipe_client_connect_cb()
107 ASSERT_OK(r); in TEST_IMPL()
121 ASSERT_OK(r); in TEST_IMPL()
129 ASSERT_OK(r); in TEST_IMPL()
140 ASSERT_OK(r); in TEST_IMPL()
143 ASSERT_OK(r); in TEST_IMPL()
159 ASSERT_OK(r); in TEST_IMPL()
167 ASSERT_OK(r); in TEST_IMPL()
173 ASSERT_OK(r); in TEST_IMPL()
243 ASSERT_OK(r); in TEST_IMPL()
[all …]
H A Dtest-spawn.c162 ASSERT_OK(r); in init_process_options()
270 ASSERT_OK(r); in TEST_IMPL()
273 ASSERT_OK(r); in TEST_IMPL()
298 ASSERT_OK(r); in TEST_IMPL()
301 ASSERT_OK(r); in TEST_IMPL()
304 ASSERT_OK(r); in TEST_IMPL()
342 ASSERT_OK(r); in TEST_IMPL()
345 ASSERT_OK(r); in TEST_IMPL()
356 ASSERT_OK(r); in TEST_IMPL()
398 ASSERT_OK(r); in TEST_IMPL()
[all …]
H A Dtest-ipc-send-recv.c155 ASSERT_OK(r); in connect_cb()
166 ASSERT_OK(r); in connect_cb()
169 ASSERT_OK(r); in connect_cb()
194 ASSERT_OK(r); in run_test()
212 ASSERT_OK(r); in run_ipc_send_recv_pipe()
215 ASSERT_OK(r); in run_ipc_send_recv_pipe()
218 ASSERT_OK(r); in run_ipc_send_recv_pipe()
221 ASSERT_OK(r); in run_ipc_send_recv_pipe()
224 ASSERT_OK(r); in run_ipc_send_recv_pipe()
253 ASSERT_OK(r); in run_ipc_send_recv_tcp()
[all …]
H A Dtest-tcp-read-stop-start.c36 ASSERT_OK(status); in on_write_close_immediately()
43 ASSERT_OK(status); in on_write()
53 ASSERT_OK(uv_write(req, stream, &buf, 1, cb)); in do_write()
72 ASSERT_OK(uv_read_stop(stream)); in on_read1()
89 ASSERT_OK(status); in on_connection()
91 ASSERT_OK(uv_tcp_init(server->loop, &connection)); in on_connection()
99 ASSERT_OK(status); in on_connect()
112 ASSERT_OK(uv_tcp_init(loop, &server)); in TEST_IMPL()
124 ASSERT_OK(uv_tcp_init(loop, &client)); in TEST_IMPL()
126 ASSERT_OK(uv_tcp_connect(&connect_req, &client, in TEST_IMPL()
[all …]
H A Dtest-udp-send-and-recv.c68 ASSERT_OK(flags); in cl_recv_cb()
94 ASSERT_OK(status); in cl_send_cb()
98 ASSERT_OK(r); in cl_send_cb()
136 ASSERT_OK(flags); in sv_recv_cb()
147 ASSERT_OK(r); in sv_recv_cb()
154 ASSERT_OK(r); in sv_recv_cb()
169 ASSERT_OK(r); in TEST_IMPL()
172 ASSERT_OK(r); in TEST_IMPL()
175 ASSERT_OK(r); in TEST_IMPL()
180 ASSERT_OK(r); in TEST_IMPL()
[all …]
H A Dtest-signal-multiple-loops.c97 ASSERT_OK(r); in signal_handling_worker()
99 ASSERT_OK(r); in signal_handling_worker()
120 ASSERT_OK(r); in signal_handling_worker()
139 ASSERT_OK(r); in signal_handling_worker()
153 ASSERT_OK(r); in signal_handling_worker()
232 ASSERT_OK(r); in TEST_IMPL()
235 ASSERT_OK(r); in TEST_IMPL()
264 ASSERT_OK(r); in TEST_IMPL()
266 ASSERT_OK(r); in TEST_IMPL()
280 ASSERT_OK(r); in TEST_IMPL()
[all …]
H A Dtest-tcp-alloc-cb-fail.c45 ASSERT_OK(status); in write_cb()
57 ASSERT_OK(buf->len); in conn_read_cb()
68 ASSERT_OK(status); in connect_cb()
73 ASSERT_OK(r); in connect_cb()
78 ASSERT_OK(status); in connection_cb()
80 ASSERT_OK(uv_tcp_init(tcp->loop, &incoming)); in connection_cb()
81 ASSERT_OK(uv_accept(tcp, (uv_stream_t*) &incoming)); in connection_cb()
82 ASSERT_OK(uv_read_start((uv_stream_t*) &incoming, in connection_cb()
95 ASSERT_OK(uv_tcp_init(uv_default_loop(), &server)); in start_server()
109 ASSERT_OK(uv_tcp_init(uv_default_loop(), &client)); in TEST_IMPL()
[all …]
H A Dtest-iouring-pollhup.c54 ASSERT_OK(close(duped_fd)); in read_data2()
69 ASSERT_OK(uv_pipe_open(&p2, newpipefds[0])); in idle_cb()
72 ASSERT_OK(uv_idle_stop(handle)); in idle_cb()
73 ASSERT_OK(close(newpipefds[1])); in idle_cb()
91 ASSERT_OK(uv_pipe_init(loop, &p1, 0)); in TEST_IMPL()
92 ASSERT_OK(uv_pipe_init(loop, &p2, 0)); in TEST_IMPL()
93 ASSERT_OK(uv_idle_init(loop, &idle_handle)); in TEST_IMPL()
94 ASSERT_OK(pipe(pipefds)); in TEST_IMPL()
95 ASSERT_OK(pipe(newpipefds)); in TEST_IMPL()
97 ASSERT_OK(uv_pipe_open(&p1, pipefds[0])); in TEST_IMPL()
[all …]
H A Dtest-udp-options.c39 ASSERT_OK(r); in udp_options_test()
44 ASSERT_OK(r); in udp_options_test()
50 ASSERT_OK(r); in udp_options_test()
57 ASSERT_OK(r); in udp_options_test()
61 ASSERT_OK(r); in udp_options_test()
74 ASSERT_OK(r); in udp_options_test()
79 ASSERT_OK(r); in udp_options_test()
88 ASSERT_OK(r); in udp_options_test()
122 ASSERT_OK(uv_udp_init(loop, &h)); in TEST_IMPL()
142 ASSERT_OK(uv_udp_set_broadcast(&h2, 1)); in TEST_IMPL()
[all …]

Completed in 72 milliseconds

12345678