/libuv/test/ |
H A D | test-ipc.c | 67 int r; in on_connection() local 146 int r; in on_read() local 216 int r; in on_read_listen_after_bound_twice() local 287 int r; in spawn_helper() local 353 int r; in on_read_connection() local 419 int r; in run_ipc_test() local 474 int r; in TEST_IMPL() local 499 int r; in TEST_IMPL() local 533 int r; in TEST_IMPL() local 574 int r; in on_tcp_child_process_read() local [all …]
|
H A D | test-ipc-send-recv.c | 93 int r; in recv_cb() local 143 int r; in connect_cb() local 175 int r; in run_test() local 207 int r; in run_ipc_send_recv_pipe() local 246 int r; in run_ipc_send_recv_tcp() local 307 int r; in read_cb() local 357 int r; in send_recv_start() local 367 int r; in listen_cb() local 378 int r; in run_ipc_send_recv_helper() local 414 int r; in ipc_send_recv_helper() local [all …]
|
H A D | test-fs-event.c | 61 int r; in create_dir() local 64 ASSERT(r == 0 || r == UV_EEXIST); in create_dir() 69 int r; in create_file() local 85 int r; in delete_dir() local 93 int r; in delete_file() local 101 int r; in touch_file() local 185 int r; in fs_event_del_dir() local 194 int r; in fs_event_unlink_files() local 271 int r; in fs_event_unlink_files_in_subdir() local 398 int r; in timer_cb_exact() local [all …]
|
H A D | test-env-vars.c | 67 ASSERT_OK(r); in TEST_IMPL() 73 ASSERT_OK(r); in TEST_IMPL() 86 ASSERT_OK(r); in TEST_IMPL() 94 ASSERT_OK(r); in TEST_IMPL() 98 ASSERT_OK(r); in TEST_IMPL() 101 ASSERT_OK(r); in TEST_IMPL() 107 ASSERT_OK(r); in TEST_IMPL() 109 ASSERT_OK(r); in TEST_IMPL() 114 ASSERT_OK(r); in TEST_IMPL() 118 ASSERT_OK(r); in TEST_IMPL() [all …]
|
H A D | test-handle-fileno.c | 47 int r; in TEST_IMPL() local 62 ASSERT_OK(r); in TEST_IMPL() 68 ASSERT_OK(r); in TEST_IMPL() 72 ASSERT_OK(r); in TEST_IMPL() 74 ASSERT_OK(r); in TEST_IMPL() 80 ASSERT_OK(r); in TEST_IMPL() 84 ASSERT_OK(r); in TEST_IMPL() 86 ASSERT_OK(r); in TEST_IMPL() 92 ASSERT_OK(r); in TEST_IMPL() 96 ASSERT_OK(r); in TEST_IMPL() [all …]
|
H A D | test-udp-open.c | 73 int r; in close_socket() local 79 ASSERT_OK(r); in close_socket() 104 int r; in recv_cb() local 123 ASSERT_OK(r); in recv_cb() 143 int r; in TEST_IMPL() local 151 ASSERT_OK(r); in TEST_IMPL() 154 ASSERT_OK(r); in TEST_IMPL() 199 int r; in TEST_IMPL() local 226 int r; in TEST_IMPL() local 258 int r; in TEST_IMPL() local [all …]
|
H A D | test-udp-connect.c | 62 int r; in cl_send_cb() local 107 int r; in TEST_IMPL() local 113 ASSERT_OK(r); in TEST_IMPL() 116 ASSERT_OK(r); in TEST_IMPL() 119 ASSERT_OK(r); in TEST_IMPL() 122 ASSERT_OK(r); in TEST_IMPL() 132 ASSERT_OK(r); in TEST_IMPL() 134 ASSERT_OK(r); in TEST_IMPL() 141 ASSERT_OK(r); in TEST_IMPL() 147 ASSERT_OK(r); in TEST_IMPL() [all …]
|
H A D | test-udp-connect6.c | 62 int r; in cl_send_cb() local 107 int r; in TEST_IMPL() local 116 ASSERT_OK(r); in TEST_IMPL() 119 ASSERT_OK(r); in TEST_IMPL() 122 ASSERT_OK(r); in TEST_IMPL() 125 ASSERT_OK(r); in TEST_IMPL() 135 ASSERT_OK(r); in TEST_IMPL() 137 ASSERT_OK(r); in TEST_IMPL() 144 ASSERT_OK(r); in TEST_IMPL() 150 ASSERT_OK(r); in TEST_IMPL() [all …]
|
H A D | test-signal-multiple-loops.c | 88 int r; in signal_handling_worker() local 120 ASSERT_OK(r); in signal_handling_worker() 139 ASSERT_OK(r); in signal_handling_worker() 153 ASSERT_OK(r); in signal_handling_worker() 172 int r; in loop_creating_worker() local 229 int r; in TEST_IMPL() local 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() [all …]
|
H A D | test-tcp-bind-error.c | 83 int r; in TEST_IMPL() local 87 ASSERT_OK(r); in TEST_IMPL() 116 int r; in TEST_IMPL() local 125 ASSERT(r == 0 || r == UV_EADDRNOTAVAIL); in TEST_IMPL() 141 int r; in TEST_IMPL() local 166 int r; in TEST_IMPL() local 191 int r; in TEST_IMPL() local 217 int r; in TEST_IMPL() local 234 int r; in TEST_IMPL() local 249 int r; in TEST_IMPL() local [all …]
|
H A D | test-fs.c | 172 int r; in check_permission() local 372 int r; in close_cb() local 386 int r; in ftruncate_cb() local 401 int r; in read_cb() local 420 int r; in open_cb() local 452 int r; in fsync_cb() local 464 int r; in fdatasync_cb() local 476 int r; in write_cb() local 488 int r; in create_cb() local 521 int r; in check_mkdtemp_result() local [all …]
|
H A D | test-tcp-connect-timeout.c | 65 int r; in TEST_IMPL() local 70 ASSERT_OK(r); in TEST_IMPL() 73 ASSERT_OK(r); in TEST_IMPL() 76 ASSERT_OK(r); in TEST_IMPL() 84 ASSERT_OK(r); in TEST_IMPL() 87 ASSERT_OK(r); in TEST_IMPL() 128 int r; in TEST_IMPL() local 136 ASSERT_OK(r); in TEST_IMPL() 140 ASSERT_OK(r); in TEST_IMPL() 143 ASSERT_OK(r); in TEST_IMPL() [all …]
|
H A D | test-tcp-create-socket-early.c | 42 int r; in on_connection() local 50 ASSERT_OK(r); in on_connection() 62 int r; in tcp_listener() local 67 ASSERT_OK(r); in tcp_listener() 70 ASSERT_OK(r); in tcp_listener() 73 ASSERT_OK(r); in tcp_listener() 79 int r; in tcp_connector() local 84 ASSERT_OK(r); in tcp_connector() 90 ASSERT_OK(r); in tcp_connector() 142 int r; in TEST_IMPL() local [all …]
|
H A D | test-tcp-bind6-error.c | 40 int r; in TEST_IMPL() local 48 ASSERT_OK(r); in TEST_IMPL() 50 ASSERT_OK(r); in TEST_IMPL() 53 ASSERT_OK(r); in TEST_IMPL() 55 ASSERT_OK(r); in TEST_IMPL() 58 ASSERT_OK(r); in TEST_IMPL() 77 int r; in TEST_IMPL() local 85 ASSERT_OK(r); in TEST_IMPL() 105 int r; in TEST_IMPL() local 133 int r; in TEST_IMPL() local [all …]
|
H A D | test-getsockname.c | 68 int r; in after_read() local 85 int r; in check_sockname() local 112 int r; in on_connection() local 174 int r; in tcp_listener() local 179 if (r) { in tcp_listener() 185 if (r) { in tcp_listener() 191 if (r) { in tcp_listener() 246 int r; in udp_recv() local 276 int r; in udp_listener() local 281 if (r) { in udp_listener() [all …]
|
H A D | test-fs-copyfile.c | 51 int r; in handle_result() local 58 ASSERT_OK(r); in handle_result() 65 ASSERT_OK(r); in handle_result() 80 int r; in touch_file() local 88 file = r; in touch_file() 101 ASSERT_OK(r); in touch_file() 109 int r; in TEST_IMPL() local 127 ASSERT(r); in TEST_IMPL() 133 ASSERT_OK(r); in TEST_IMPL() 137 ASSERT_OK(r); in TEST_IMPL() [all …]
|
H A D | test-pipe-getsockname.c | 52 int r; in pipe_client_connect_cb() local 59 ASSERT_OK(r); in pipe_client_connect_cb() 128 int r; in TEST_IMPL() local 137 ASSERT_OK(r); in TEST_IMPL() 151 ASSERT_OK(r); in TEST_IMPL() 181 ASSERT_OK(r); in TEST_IMPL() 184 ASSERT_OK(r); in TEST_IMPL() 200 ASSERT_OK(r); in TEST_IMPL() 209 ASSERT_OK(r); in TEST_IMPL() 317 int r; in TEST_IMPL() local [all …]
|
H A D | test-tcp-open.c | 78 int r; in close_socket() local 84 ASSERT_OK(r); in close_socket() 156 int r; in write1_cb() local 169 ASSERT_OK(r); in write1_cb() 176 int r; in timer_cb() local 180 ASSERT_OK(r); in timer_cb() 188 int r; in connect_cb() local 212 int r; in connect1_cb() local 239 int r; in TEST_IMPL() local 288 int r; in TEST_IMPL() local [all …]
|
H A D | test-spawn.c | 188 int r; in TEST_IMPL() local 194 ASSERT(r == UV_ENOENT || r == UV_EACCES); in TEST_IMPL() 206 int r; in TEST_IMPL() local 214 ASSERT(r == UV_ENOENT || r == UV_EACCES); in TEST_IMPL() 265 int r; in TEST_IMPL() local 284 int r; in TEST_IMPL() local 317 int r; in TEST_IMPL() local 371 int r; in TEST_IMPL() local 428 int r; in TEST_IMPL() local 1364 ASSERT(r == UV_ENOENT || r == UV_EACCES); in TEST_IMPL() [all …]
|
H A D | test-udp-bind.c | 34 int r; in TEST_IMPL() local 41 ASSERT_OK(r); in TEST_IMPL() 44 ASSERT_OK(r); in TEST_IMPL() 47 ASSERT_OK(r); in TEST_IMPL() 56 ASSERT_OK(r); in TEST_IMPL() 67 int r; in TEST_IMPL() local 74 ASSERT_OK(r); in TEST_IMPL() 77 ASSERT_OK(r); in TEST_IMPL() 80 ASSERT_OK(r); in TEST_IMPL() 83 ASSERT_OK(r); in TEST_IMPL() [all …]
|
H A D | test-udp-create-socket-early.c | 39 int r, namelen; in TEST_IMPL() local 44 ASSERT_OK(r); in TEST_IMPL() 47 ASSERT_OK(r); in TEST_IMPL() 54 ASSERT_OK(r); in TEST_IMPL() 61 ASSERT_OK(r); in TEST_IMPL() 65 ASSERT_OK(r); in TEST_IMPL() 82 int r; in TEST_IMPL() local 90 ASSERT_OK(r); in TEST_IMPL() 93 ASSERT_OK(r); in TEST_IMPL() 103 ASSERT_OK(r); in TEST_IMPL() [all …]
|
H A D | test-udp-options.c | 34 int i, r; in udp_options_test() local 38 r = uv_udp_init(loop, &h); in udp_options_test() 39 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() 84 ASSERT_EQ(r, UV_EINVAL); in udp_options_test() [all …]
|
H A D | test-pipe-bind-error.c | 47 int r; in TEST_IMPL() local 50 ASSERT_OK(r); in TEST_IMPL() 52 ASSERT_OK(r); in TEST_IMPL() 55 ASSERT_OK(r); in TEST_IMPL() 60 ASSERT_OK(r); in TEST_IMPL() 78 int r; in TEST_IMPL() local 81 ASSERT_OK(r); in TEST_IMPL() 99 int r; in TEST_IMPL() local 102 ASSERT_OK(r); in TEST_IMPL() 104 ASSERT_OK(r); in TEST_IMPL() [all …]
|
H A D | test-tmpdir.c | 33 int r; in TEST_IMPL() local 41 ASSERT_OK(r); in TEST_IMPL() 58 ASSERT_EQ(r, UV_ENOBUFS); in TEST_IMPL() 63 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL() 65 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL() 68 ASSERT_EQ(r, UV_EINVAL); in TEST_IMPL() 74 ASSERT_OK(r); in TEST_IMPL() 78 ASSERT_OK(r); in TEST_IMPL() 81 r = uv_os_setenv("TMP", ""); in TEST_IMPL() 82 ASSERT_EQ(r, 0); in TEST_IMPL() [all …]
|
H A D | test-loop-handles.c | 141 int r; in idle_1_cb() local 207 int i, r; in check_cb() local 243 int r; in prepare_2_cb() local 256 ASSERT_OK(r); in prepare_2_cb() 263 int r; in prepare_1_cb() local 283 int r; in TEST_IMPL() local 286 ASSERT_OK(r); in TEST_IMPL() 288 ASSERT_OK(r); in TEST_IMPL() 291 ASSERT_OK(r); in TEST_IMPL() 293 ASSERT_OK(r); in TEST_IMPL() [all …]
|