comparison third_party/libuv/test/test-list.h @ 160:948de3f54cea

[ThirdParty] Added libuv
author June Park <parkjune1995@gmail.com>
date Wed, 14 Jan 2026 19:39:52 -0800
parents
children
comparison
equal deleted inserted replaced
159:05cf9467a1c3 160:948de3f54cea
1 /* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
2 *
3 * Permission is hereby granted, free of charge, to any person obtaining a copy
4 * of this software and associated documentation files (the "Software"), to
5 * deal in the Software without restriction, including without limitation the
6 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7 * sell copies of the Software, and to permit persons to whom the Software is
8 * furnished to do so, subject to the following conditions:
9 *
10 * The above copyright notice and this permission notice shall be included in
11 * all copies or substantial portions of the Software.
12 *
13 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19 * IN THE SOFTWARE.
20 */
21
22 #include "uv.h"
23
24 TEST_DECLARE (platform_output)
25 TEST_DECLARE (close_order)
26 TEST_DECLARE (run_once)
27 TEST_DECLARE (run_nowait)
28 TEST_DECLARE (loop_alive)
29 TEST_DECLARE (loop_close)
30 TEST_DECLARE (loop_instant_close)
31 TEST_DECLARE (loop_stop)
32 TEST_DECLARE (loop_stop_before_run)
33 TEST_DECLARE (loop_update_time)
34 TEST_DECLARE (loop_backend_timeout)
35 TEST_DECLARE (loop_configure)
36 TEST_DECLARE (loop_init_oom)
37 TEST_DECLARE (default_loop_close)
38 TEST_DECLARE (barrier_1)
39 TEST_DECLARE (barrier_2)
40 TEST_DECLARE (barrier_3)
41 TEST_DECLARE (barrier_serial_thread)
42 TEST_DECLARE (barrier_serial_thread_single)
43 TEST_DECLARE (condvar_1)
44 TEST_DECLARE (condvar_2)
45 TEST_DECLARE (condvar_3)
46 TEST_DECLARE (condvar_4)
47 TEST_DECLARE (condvar_5)
48 TEST_DECLARE (semaphore_1)
49 TEST_DECLARE (semaphore_2)
50 TEST_DECLARE (semaphore_3)
51 TEST_DECLARE (tty)
52 #ifdef _WIN32
53 TEST_DECLARE (tty_raw)
54 TEST_DECLARE (tty_empty_write)
55 TEST_DECLARE (tty_large_write)
56 TEST_DECLARE (tty_raw_cancel)
57 TEST_DECLARE (tty_duplicate_vt100_fn_key_libuv)
58 TEST_DECLARE (tty_duplicate_vt100_fn_key_winvt)
59 TEST_DECLARE (tty_duplicate_alt_modifier_key)
60 TEST_DECLARE (tty_composing_character)
61 TEST_DECLARE (tty_cursor_up)
62 TEST_DECLARE (tty_cursor_down)
63 TEST_DECLARE (tty_cursor_forward)
64 TEST_DECLARE (tty_cursor_back)
65 TEST_DECLARE (tty_cursor_next_line)
66 TEST_DECLARE (tty_cursor_previous_line)
67 TEST_DECLARE (tty_cursor_horizontal_move_absolute)
68 TEST_DECLARE (tty_cursor_move_absolute)
69 TEST_DECLARE (tty_hide_show_cursor)
70 TEST_DECLARE (tty_set_cursor_shape)
71 TEST_DECLARE (tty_erase)
72 TEST_DECLARE (tty_erase_line)
73 TEST_DECLARE (tty_set_style)
74 TEST_DECLARE (tty_save_restore_cursor_position)
75 TEST_DECLARE (tty_full_reset)
76 TEST_DECLARE (tty_escape_sequence_processing)
77 #endif
78 TEST_DECLARE (tty_file)
79 TEST_DECLARE (tty_pty)
80 TEST_DECLARE (stdio_over_pipes)
81 TEST_DECLARE (stdio_emulate_iocp)
82 TEST_DECLARE (ip6_pton)
83 TEST_DECLARE (ip6_sin6_len)
84 TEST_DECLARE (connect_unspecified)
85 TEST_DECLARE (ipc_heavy_traffic_deadlock_bug)
86 TEST_DECLARE (ipc_listen_before_write)
87 TEST_DECLARE (ipc_listen_after_write)
88 #ifndef _WIN32
89 TEST_DECLARE (ipc_send_recv_pipe)
90 TEST_DECLARE (ipc_send_recv_pipe_inprocess)
91 #endif
92 TEST_DECLARE (ipc_send_recv_tcp)
93 TEST_DECLARE (ipc_send_recv_tcp_inprocess)
94 TEST_DECLARE (ipc_tcp_connection)
95 TEST_DECLARE (ipc_send_zero)
96 TEST_DECLARE (tcp_alloc_cb_fail)
97 TEST_DECLARE (tcp_ping_pong)
98 TEST_DECLARE (tcp_ping_pong_vec)
99 TEST_DECLARE (tcp6_ping_pong)
100 TEST_DECLARE (tcp6_ping_pong_vec)
101 TEST_DECLARE (pipe_ping_pong)
102 TEST_DECLARE (pipe_ping_pong_vec)
103 TEST_DECLARE (delayed_accept)
104 TEST_DECLARE (multiple_listen)
105 #ifndef _WIN32
106 TEST_DECLARE (tcp_write_after_connect)
107 #endif
108 TEST_DECLARE (tcp_writealot)
109 TEST_DECLARE (tcp_write_fail)
110 TEST_DECLARE (tcp_try_write)
111 TEST_DECLARE (tcp_write_in_a_row)
112 TEST_DECLARE (tcp_try_write_error)
113 TEST_DECLARE (tcp_write_queue_order)
114 TEST_DECLARE (tcp_open)
115 TEST_DECLARE (tcp_open_twice)
116 TEST_DECLARE (tcp_open_bound)
117 TEST_DECLARE (tcp_open_connected)
118 TEST_DECLARE (tcp_connect_error_after_write)
119 TEST_DECLARE (tcp_shutdown_after_write)
120 TEST_DECLARE (tcp_bind_error_addrinuse_connect)
121 TEST_DECLARE (tcp_bind_error_addrinuse_listen)
122 TEST_DECLARE (tcp_bind_error_addrnotavail_1)
123 TEST_DECLARE (tcp_bind_error_addrnotavail_2)
124 TEST_DECLARE (tcp_bind_error_fault)
125 TEST_DECLARE (tcp_bind_error_inval)
126 TEST_DECLARE (tcp_bind_localhost_ok)
127 TEST_DECLARE (tcp_bind_invalid_flags)
128 TEST_DECLARE (tcp_bind_writable_flags)
129 TEST_DECLARE (tcp_bind_or_listen_error_after_close)
130 TEST_DECLARE (tcp_listen_without_bind)
131 TEST_DECLARE (tcp_connect_error_fault)
132 TEST_DECLARE (tcp_connect6_error_fault)
133 TEST_DECLARE (tcp_connect6_link_local)
134 TEST_DECLARE (tcp_connect_timeout)
135 TEST_DECLARE (tcp_local_connect_timeout)
136 TEST_DECLARE (tcp6_local_connect_timeout)
137 TEST_DECLARE (tcp_close_while_connecting)
138 TEST_DECLARE (tcp_close_after_read_timeout)
139 TEST_DECLARE (tcp_close)
140 TEST_DECLARE (tcp_close_reset_accepted)
141 TEST_DECLARE (tcp_close_reset_accepted_after_shutdown)
142 TEST_DECLARE (tcp_close_reset_accepted_after_socket_shutdown)
143 TEST_DECLARE (tcp_close_reset_client)
144 TEST_DECLARE (tcp_close_reset_client_after_shutdown)
145 TEST_DECLARE (tcp_create_early)
146 TEST_DECLARE (tcp_create_early_bad_bind)
147 TEST_DECLARE (tcp_create_early_bad_domain)
148 TEST_DECLARE (tcp_create_early_accept)
149 #ifndef _WIN32
150 TEST_DECLARE (tcp_close_accept)
151 TEST_DECLARE (tcp_oob)
152 #endif
153 TEST_DECLARE (tcp_flags)
154 TEST_DECLARE (tcp_write_to_half_open_connection)
155 TEST_DECLARE (tcp_unexpected_read)
156 TEST_DECLARE (tcp_read_stop)
157 TEST_DECLARE (tcp_read_stop_start)
158 TEST_DECLARE (tcp_reuseport)
159 TEST_DECLARE (tcp_rst)
160 TEST_DECLARE (tcp_bind6_error_addrinuse)
161 TEST_DECLARE (tcp_bind6_error_addrnotavail)
162 TEST_DECLARE (tcp_bind6_error_fault)
163 TEST_DECLARE (tcp_bind6_error_inval)
164 TEST_DECLARE (tcp_bind6_localhost_ok)
165 TEST_DECLARE (tcp_write_ready)
166 TEST_DECLARE (udp_alloc_cb_fail)
167 TEST_DECLARE (udp_bind)
168 TEST_DECLARE (udp_bind_reuseaddr)
169 TEST_DECLARE (udp_connect)
170 TEST_DECLARE (udp_connect6)
171 TEST_DECLARE (udp_create_early)
172 TEST_DECLARE (udp_create_early_bad_bind)
173 TEST_DECLARE (udp_create_early_bad_domain)
174 TEST_DECLARE (udp_send_and_recv)
175 TEST_DECLARE (udp_send_hang_loop)
176 TEST_DECLARE (udp_send_immediate)
177 TEST_DECLARE (udp_send_unreachable)
178 TEST_DECLARE (udp_mmsg)
179 TEST_DECLARE (udp_multicast_join)
180 TEST_DECLARE (udp_multicast_join6)
181 TEST_DECLARE (udp_multicast_ttl)
182 TEST_DECLARE (udp_multicast_interface)
183 TEST_DECLARE (udp_multicast_interface6)
184 TEST_DECLARE (udp_dgram_too_big)
185 TEST_DECLARE (udp_dual_stack)
186 TEST_DECLARE (udp_ipv6_only)
187 TEST_DECLARE (udp_options)
188 TEST_DECLARE (udp_options6)
189 TEST_DECLARE (udp_no_autobind)
190 TEST_DECLARE (udp_open)
191 TEST_DECLARE (udp_open_twice)
192 TEST_DECLARE (udp_open_bound)
193 TEST_DECLARE (udp_open_connect)
194 TEST_DECLARE (udp_recv_in_a_row)
195 TEST_DECLARE (udp_reuseport)
196 #ifndef _WIN32
197 TEST_DECLARE (udp_send_unix)
198 #endif
199 TEST_DECLARE (udp_sendmmsg_error)
200 TEST_DECLARE (udp_try_send)
201 TEST_DECLARE (pipe_bind_error_addrinuse)
202 TEST_DECLARE (pipe_bind_error_addrnotavail)
203 TEST_DECLARE (pipe_bind_error_inval)
204 TEST_DECLARE (pipe_connect_close_multiple)
205 TEST_DECLARE (pipe_connect_multiple)
206 TEST_DECLARE (pipe_listen_without_bind)
207 TEST_DECLARE (pipe_bind_or_listen_error_after_close)
208 TEST_DECLARE (pipe_overlong_path)
209 TEST_DECLARE (pipe_connect_bad_name)
210 TEST_DECLARE (pipe_connect_to_file)
211 TEST_DECLARE (pipe_connect_on_prepare)
212 TEST_DECLARE (pipe_getsockname)
213 TEST_DECLARE (pipe_getsockname_abstract)
214 TEST_DECLARE (pipe_getsockname_autobind)
215 TEST_DECLARE (pipe_getsockname_blocking)
216 TEST_DECLARE (pipe_pending_instances)
217 TEST_DECLARE (pipe_sendmsg)
218 TEST_DECLARE (pipe_server_close)
219 TEST_DECLARE (connection_fail)
220 TEST_DECLARE (connection_fail_doesnt_auto_close)
221 TEST_DECLARE (shutdown_close_tcp)
222 TEST_DECLARE (shutdown_close_pipe)
223 TEST_DECLARE (shutdown_eof)
224 TEST_DECLARE (shutdown_simultaneous)
225 TEST_DECLARE (shutdown_twice)
226 TEST_DECLARE (callback_stack)
227 TEST_DECLARE (env_vars)
228 TEST_DECLARE (error_message)
229 TEST_DECLARE (sys_error)
230 TEST_DECLARE (timer)
231 TEST_DECLARE (timer_init)
232 TEST_DECLARE (timer_again)
233 TEST_DECLARE (timer_start_twice)
234 TEST_DECLARE (timer_order)
235 TEST_DECLARE (timer_zero_timeout)
236 TEST_DECLARE (timer_huge_timeout)
237 TEST_DECLARE (timer_huge_repeat)
238 TEST_DECLARE (timer_run_once)
239 TEST_DECLARE (timer_from_check)
240 TEST_DECLARE (timer_is_closing)
241 TEST_DECLARE (timer_null_callback)
242 TEST_DECLARE (timer_early_check)
243 TEST_DECLARE (timer_no_double_call_once)
244 TEST_DECLARE (timer_no_double_call_nowait)
245 TEST_DECLARE (timer_no_run_on_unref)
246 TEST_DECLARE (idle_starvation)
247 TEST_DECLARE (idle_check)
248 TEST_DECLARE (loop_handles)
249 TEST_DECLARE (get_loadavg)
250 TEST_DECLARE (walk_handles)
251 TEST_DECLARE (watcher_cross_stop)
252 TEST_DECLARE (ref)
253 TEST_DECLARE (idle_ref)
254 TEST_DECLARE (async_ref)
255 TEST_DECLARE (prepare_ref)
256 TEST_DECLARE (check_ref)
257 TEST_DECLARE (unref_in_prepare_cb)
258 TEST_DECLARE (timer_ref)
259 TEST_DECLARE (timer_ref2)
260 TEST_DECLARE (fs_event_ref)
261 TEST_DECLARE (fs_poll_ref)
262 TEST_DECLARE (tcp_ref)
263 TEST_DECLARE (tcp_ref2)
264 TEST_DECLARE (tcp_ref2b)
265 TEST_DECLARE (tcp_ref3)
266 TEST_DECLARE (tcp_ref4)
267 TEST_DECLARE (udp_ref)
268 TEST_DECLARE (udp_ref2)
269 TEST_DECLARE (udp_ref3)
270 TEST_DECLARE (pipe_ref)
271 TEST_DECLARE (pipe_ref2)
272 TEST_DECLARE (pipe_ref3)
273 TEST_DECLARE (pipe_ref4)
274 #ifndef _WIN32
275 TEST_DECLARE (pipe_close_stdout_read_stdin)
276 #endif
277 TEST_DECLARE (pipe_set_non_blocking)
278 TEST_DECLARE (pipe_set_chmod)
279 TEST_DECLARE (process_ref)
280 TEST_DECLARE (process_priority)
281 TEST_DECLARE (has_ref)
282 TEST_DECLARE (active)
283 TEST_DECLARE (embed)
284 TEST_DECLARE (async)
285 TEST_DECLARE (async_null_cb)
286 TEST_DECLARE (eintr_handling)
287 TEST_DECLARE (get_currentexe)
288 TEST_DECLARE (process_title)
289 TEST_DECLARE (process_title_big_argv)
290 TEST_DECLARE (process_title_threadsafe)
291 TEST_DECLARE (cwd_and_chdir)
292 TEST_DECLARE (get_memory)
293 TEST_DECLARE (get_passwd)
294 TEST_DECLARE (get_passwd2)
295 TEST_DECLARE (get_group)
296 TEST_DECLARE (handle_fileno)
297 TEST_DECLARE (homedir)
298 TEST_DECLARE (tmpdir)
299 TEST_DECLARE (hrtime)
300 TEST_DECLARE (clock_gettime)
301 TEST_DECLARE (getaddrinfo_fail)
302 TEST_DECLARE (getaddrinfo_fail_sync)
303 TEST_DECLARE (getaddrinfo_basic)
304 TEST_DECLARE (getaddrinfo_basic_sync)
305 TEST_DECLARE (getaddrinfo_concurrent)
306 TEST_DECLARE (gethostname)
307 TEST_DECLARE (getnameinfo_basic_ip4)
308 TEST_DECLARE (getnameinfo_basic_ip4_sync)
309 TEST_DECLARE (getnameinfo_basic_ip6)
310 TEST_DECLARE (getsockname_tcp)
311 TEST_DECLARE (getsockname_udp)
312 TEST_DECLARE (gettimeofday)
313 TEST_DECLARE (test_macros)
314 TEST_DECLARE (fail_always)
315 TEST_DECLARE (pass_always)
316 TEST_DECLARE (socket_buffer_size)
317 TEST_DECLARE (spawn_fails)
318 #ifndef _WIN32
319 TEST_DECLARE (spawn_fails_check_for_waitpid_cleanup)
320 #endif
321 TEST_DECLARE (spawn_empty_env)
322 TEST_DECLARE (spawn_exit_code)
323 TEST_DECLARE (spawn_stdout)
324 TEST_DECLARE (spawn_stdin)
325 TEST_DECLARE (spawn_stdio_greater_than_3)
326 TEST_DECLARE (spawn_ignored_stdio)
327 TEST_DECLARE (spawn_and_kill)
328 TEST_DECLARE (spawn_detached)
329 TEST_DECLARE (spawn_and_kill_with_std)
330 TEST_DECLARE (spawn_and_ping)
331 TEST_DECLARE (spawn_preserve_env)
332 TEST_DECLARE (spawn_same_stdout_stderr)
333 TEST_DECLARE (spawn_setuid_fails)
334 TEST_DECLARE (spawn_setgid_fails)
335 TEST_DECLARE (spawn_stdout_to_file)
336 TEST_DECLARE (spawn_stdout_and_stderr_to_file)
337 TEST_DECLARE (spawn_stdout_and_stderr_to_file2)
338 TEST_DECLARE (spawn_stdout_and_stderr_to_file_swap)
339 TEST_DECLARE (spawn_auto_unref)
340 TEST_DECLARE (spawn_closed_process_io)
341 TEST_DECLARE (spawn_reads_child_path)
342 TEST_DECLARE (spawn_inherit_streams)
343 TEST_DECLARE (spawn_quoted_path)
344 TEST_DECLARE (spawn_tcp_server)
345 TEST_DECLARE (spawn_exercise_sigchld_issue)
346 TEST_DECLARE (spawn_relative_path)
347 TEST_DECLARE (fs_poll)
348 TEST_DECLARE (fs_poll_getpath)
349 TEST_DECLARE (fs_poll_close_request)
350 TEST_DECLARE (fs_poll_close_request_multi_start_stop)
351 TEST_DECLARE (fs_poll_close_request_multi_stop_start)
352 TEST_DECLARE (fs_poll_close_request_stop_when_active)
353 TEST_DECLARE (kill)
354 TEST_DECLARE (kill_invalid_signum)
355 TEST_DECLARE (fs_file_noent)
356 TEST_DECLARE (fs_file_nametoolong)
357 TEST_DECLARE (fs_file_loop)
358 TEST_DECLARE (fs_file_async)
359 TEST_DECLARE (fs_file_sync)
360 TEST_DECLARE (fs_posix_delete)
361 TEST_DECLARE (fs_file_write_null_buffer)
362 TEST_DECLARE (fs_async_dir)
363 TEST_DECLARE (fs_async_sendfile)
364 TEST_DECLARE (fs_async_sendfile_nodata)
365 TEST_DECLARE (fs_mkdtemp)
366 TEST_DECLARE (fs_mkstemp)
367 TEST_DECLARE (fs_fstat)
368 TEST_DECLARE (fs_fstat_stdio)
369 TEST_DECLARE (fs_fstat_st_dev)
370 TEST_DECLARE (fs_access)
371 TEST_DECLARE (fs_chmod)
372 TEST_DECLARE (fs_copyfile)
373 TEST_DECLARE (fs_unlink_readonly)
374 #ifdef _WIN32
375 TEST_DECLARE (fs_unlink_archive_readonly)
376 #endif
377 TEST_DECLARE (fs_chown)
378 TEST_DECLARE (fs_link)
379 TEST_DECLARE (fs_readlink)
380 TEST_DECLARE (fs_realpath)
381 TEST_DECLARE (fs_symlink)
382 TEST_DECLARE (fs_symlink_dir)
383 #ifdef _WIN32
384 TEST_DECLARE (fs_symlink_junction)
385 TEST_DECLARE (fs_non_symlink_reparse_point)
386 TEST_DECLARE (fs_lstat_windows_store_apps)
387 TEST_DECLARE (fs_open_flags)
388 #endif
389 #if defined(_WIN32) && !defined(USING_UV_SHARED)
390 TEST_DECLARE (fs_fd_hash)
391 #endif
392 TEST_DECLARE (fs_utime)
393 TEST_DECLARE (fs_utime_round)
394 TEST_DECLARE (fs_futime)
395 TEST_DECLARE (fs_lutime)
396 TEST_DECLARE (fs_file_open_append)
397 TEST_DECLARE (fs_statfs)
398 TEST_DECLARE (fs_stat_batch_multiple)
399 TEST_DECLARE (fs_stat_missing_path)
400 TEST_DECLARE (fs_read_bufs)
401 TEST_DECLARE (fs_read_file_eof)
402 TEST_DECLARE (fs_event_watch_dir)
403 TEST_DECLARE (fs_event_watch_delete_dir)
404 TEST_DECLARE (fs_event_watch_dir_recursive)
405 #ifdef _WIN32
406 TEST_DECLARE (fs_event_watch_dir_short_path)
407 #endif
408 TEST_DECLARE (fs_event_watch_file)
409 TEST_DECLARE (fs_event_watch_file_exact_path)
410 TEST_DECLARE (fs_event_watch_file_twice)
411 TEST_DECLARE (fs_event_watch_file_current_dir)
412 #ifdef _WIN32
413 TEST_DECLARE (fs_event_watch_file_root_dir)
414 #endif
415 TEST_DECLARE (fs_event_watch_invalid_path)
416 TEST_DECLARE (fs_event_no_callback_after_close)
417 TEST_DECLARE (fs_event_no_callback_on_close)
418 TEST_DECLARE (fs_event_immediate_close)
419 TEST_DECLARE (fs_event_close_with_pending_event)
420 TEST_DECLARE (fs_event_close_with_pending_delete_event)
421 TEST_DECLARE (fs_event_close_in_callback)
422 TEST_DECLARE (fs_event_start_and_close)
423 TEST_DECLARE (fs_event_getpath)
424 TEST_DECLARE (fs_event_stop_in_cb)
425 TEST_DECLARE (fs_scandir_empty_dir)
426 TEST_DECLARE (fs_scandir_non_existent_dir)
427 TEST_DECLARE (fs_scandir_file)
428 TEST_DECLARE (fs_scandir_early_exit)
429 TEST_DECLARE (fs_open_dir)
430 TEST_DECLARE (fs_readdir_empty_dir)
431 TEST_DECLARE (fs_readdir_file)
432 TEST_DECLARE (fs_readdir_non_empty_dir)
433 TEST_DECLARE (fs_readdir_non_existing_dir)
434 #ifdef _WIN32
435 TEST_DECLARE (fs_readdir_symlink)
436 #endif
437 TEST_DECLARE (fs_rename_to_existing_file)
438 TEST_DECLARE (fs_write_multiple_bufs)
439 TEST_DECLARE (fs_read_write_null_arguments)
440 TEST_DECLARE (get_osfhandle_valid_handle)
441 TEST_DECLARE (open_osfhandle_valid_handle)
442 TEST_DECLARE (fs_write_alotof_bufs)
443 TEST_DECLARE (fs_write_alotof_bufs_with_offset)
444 TEST_DECLARE (fs_partial_read)
445 TEST_DECLARE (fs_partial_write)
446 TEST_DECLARE (fs_file_pos_after_op_with_offset)
447 TEST_DECLARE (fs_null_req)
448 TEST_DECLARE (fs_read_dir)
449 #ifdef _WIN32
450 TEST_DECLARE (fs_file_pos_write)
451 TEST_DECLARE (fs_file_pos_append)
452 TEST_DECLARE (fs_exclusive_sharing_mode)
453 TEST_DECLARE (fs_file_flag_no_buffering)
454 TEST_DECLARE (fs_open_readonly_acl)
455 TEST_DECLARE (fs_fchmod_archive_readonly)
456 TEST_DECLARE (fs_invalid_mkdir_name)
457 TEST_DECLARE (fs_wtf)
458 #endif
459 TEST_DECLARE (fs_get_system_error)
460 TEST_DECLARE (strscpy)
461 TEST_DECLARE (strtok)
462 TEST_DECLARE (threadpool_queue_work_simple)
463 TEST_DECLARE (threadpool_queue_work_einval)
464 TEST_DECLARE (threadpool_multiple_event_loops)
465 TEST_DECLARE (threadpool_cancel_getaddrinfo)
466 TEST_DECLARE (threadpool_cancel_getnameinfo)
467 TEST_DECLARE (threadpool_cancel_random)
468 TEST_DECLARE (threadpool_cancel_work)
469 TEST_DECLARE (threadpool_cancel_fs)
470 TEST_DECLARE (threadpool_cancel_single)
471 TEST_DECLARE (threadpool_cancel_when_busy)
472 TEST_DECLARE (thread_detach)
473 TEST_DECLARE (thread_local_storage)
474 TEST_DECLARE (thread_stack_size)
475 TEST_DECLARE (thread_stack_size_explicit)
476 TEST_DECLARE (thread_mutex)
477 TEST_DECLARE (thread_mutex_recursive)
478 TEST_DECLARE (thread_rwlock)
479 TEST_DECLARE (thread_rwlock_trylock)
480 TEST_DECLARE (thread_create)
481 TEST_DECLARE (thread_equal)
482 TEST_DECLARE (thread_affinity)
483 TEST_DECLARE (thread_priority)
484 TEST_DECLARE (thread_name)
485 TEST_DECLARE (thread_name_threadpool)
486 TEST_DECLARE (dlerror)
487 #if (defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))) && \
488 !defined(__sun)
489 TEST_DECLARE (poll_oob)
490 #endif
491 TEST_DECLARE (poll_duplex)
492 TEST_DECLARE (poll_unidirectional)
493 TEST_DECLARE (poll_close)
494 TEST_DECLARE (poll_bad_fdtype)
495 #ifdef __linux__
496 TEST_DECLARE (poll_nested_epoll)
497 #endif
498 #ifdef UV_HAVE_KQUEUE
499 TEST_DECLARE (poll_nested_kqueue)
500 #endif
501 TEST_DECLARE (poll_multiple_handles)
502
503 TEST_DECLARE (ip4_addr)
504 TEST_DECLARE (ip6_addr_link_local)
505 TEST_DECLARE (ip_name)
506
507 TEST_DECLARE (poll_close_doesnt_corrupt_stack)
508 TEST_DECLARE (poll_closesocket)
509 TEST_DECLARE (close_fd)
510 TEST_DECLARE (closed_fd_events)
511 TEST_DECLARE (spawn_fs_open)
512 #ifdef _WIN32
513 TEST_DECLARE (spawn_detect_pipe_name_collisions_on_windows)
514 #if !defined(USING_UV_SHARED)
515 TEST_DECLARE (argument_escaping)
516 TEST_DECLARE (environment_creation)
517 #endif
518 TEST_DECLARE (listen_with_simultaneous_accepts)
519 TEST_DECLARE (listen_no_simultaneous_accepts)
520 TEST_DECLARE (fs_stat_root)
521 TEST_DECLARE (fs_stat_no_permission)
522 TEST_DECLARE (spawn_with_an_odd_path)
523 TEST_DECLARE (spawn_no_path)
524 TEST_DECLARE (spawn_no_ext)
525 TEST_DECLARE (spawn_path_no_ext)
526 TEST_DECLARE (ipc_listen_after_bind_twice)
527 TEST_DECLARE (win32_signum_number)
528 #else
529 TEST_DECLARE (emfile)
530 TEST_DECLARE (spawn_setuid_setgid)
531 TEST_DECLARE (we_get_signal)
532 TEST_DECLARE (we_get_signals)
533 TEST_DECLARE (we_get_signal_one_shot)
534 TEST_DECLARE (we_get_signals_mixed)
535 TEST_DECLARE (signal_multiple_loops)
536 TEST_DECLARE (signal_pending_on_close)
537 TEST_DECLARE (signal_close_loop_alive)
538 #endif
539 #ifdef __APPLE__
540 TEST_DECLARE (osx_select)
541 TEST_DECLARE (osx_select_many_fds)
542 #endif
543 HELPER_DECLARE (tcp4_echo_server)
544 HELPER_DECLARE (tcp6_echo_server)
545 HELPER_DECLARE (udp4_echo_server)
546 HELPER_DECLARE (pipe_echo_server)
547
548 TEST_DECLARE (queue_foreach_delete)
549
550 TEST_DECLARE (random_async)
551 TEST_DECLARE (random_sync)
552
553 TEST_DECLARE (handle_type_name)
554 TEST_DECLARE (req_type_name)
555 TEST_DECLARE (getters_setters)
556
557 TEST_DECLARE (not_writable_after_shutdown)
558 TEST_DECLARE (not_readable_nor_writable_on_read_error)
559 TEST_DECLARE (readable_on_eof)
560
561 #ifndef _WIN32
562 TEST_DECLARE (fork_timer)
563 TEST_DECLARE (fork_socketpair)
564 TEST_DECLARE (fork_socketpair_started)
565 TEST_DECLARE (fork_signal_to_child)
566 TEST_DECLARE (fork_signal_to_child_closed)
567 TEST_DECLARE (fork_close_signal_in_child)
568 #ifndef __APPLE__ /* This is forbidden in a fork child: The process has forked
569 and you cannot use this CoreFoundation functionality
570 safely. You MUST exec(). */
571 TEST_DECLARE (fork_fs_events_child)
572 TEST_DECLARE (fork_fs_events_child_dir)
573 TEST_DECLARE (fork_fs_events_file_parent_child)
574 #endif
575 #ifndef __MVS__
576 TEST_DECLARE (fork_threadpool_queue_work_simple)
577 #endif
578 #endif
579
580 TEST_DECLARE (iouring_pollhup)
581
582 TEST_DECLARE (wtf8)
583 TEST_DECLARE (idna_toascii)
584 TEST_DECLARE (utf8_decode1)
585 TEST_DECLARE (utf8_decode1_overrun)
586 TEST_DECLARE (uname)
587
588 TEST_DECLARE (metrics_info_check)
589 TEST_DECLARE (metrics_pool_events)
590 TEST_DECLARE (metrics_idle_time)
591 TEST_DECLARE (metrics_idle_time_thread)
592 TEST_DECLARE (metrics_idle_time_zero)
593
594 TASK_LIST_START
595 TEST_ENTRY_CUSTOM (platform_output, 0, 1, 5000)
596
597 TEST_ENTRY (test_macros)
598 TEST_ENTRY (close_order)
599 TEST_ENTRY (run_once)
600 TEST_ENTRY (run_nowait)
601 TEST_ENTRY (loop_alive)
602 TEST_ENTRY (loop_close)
603 TEST_ENTRY (loop_instant_close)
604 TEST_ENTRY (loop_stop)
605 TEST_ENTRY (loop_stop_before_run)
606 TEST_ENTRY (loop_update_time)
607 TEST_ENTRY (loop_backend_timeout)
608 TEST_ENTRY (loop_configure)
609 TEST_ENTRY (loop_init_oom)
610 TEST_ENTRY (default_loop_close)
611 TEST_ENTRY (barrier_1)
612 TEST_ENTRY (barrier_2)
613 TEST_ENTRY (barrier_3)
614 TEST_ENTRY (barrier_serial_thread)
615 TEST_ENTRY (barrier_serial_thread_single)
616 TEST_ENTRY (condvar_1)
617 TEST_ENTRY (condvar_2)
618 TEST_ENTRY (condvar_3)
619 TEST_ENTRY (condvar_4)
620 TEST_ENTRY (condvar_5)
621 TEST_ENTRY (semaphore_1)
622 TEST_ENTRY (semaphore_2)
623 TEST_ENTRY (semaphore_3)
624
625 TEST_ENTRY (pipe_connect_bad_name)
626 TEST_ENTRY (pipe_connect_to_file)
627 TEST_ENTRY (pipe_connect_on_prepare)
628
629 TEST_ENTRY (pipe_server_close)
630 #ifndef _WIN32
631 TEST_ENTRY (pipe_close_stdout_read_stdin)
632 #endif
633 /* Seems to be either about 0.5s or 5s, depending on the OS. */
634 TEST_ENTRY_CUSTOM (pipe_set_non_blocking, 0, 0, 20000)
635 TEST_ENTRY (pipe_set_chmod)
636 TEST_ENTRY (tty)
637 #ifdef _WIN32
638 TEST_ENTRY (tty_raw)
639 TEST_ENTRY (tty_empty_write)
640 TEST_ENTRY (tty_large_write)
641 TEST_ENTRY (tty_raw_cancel)
642 TEST_ENTRY (tty_duplicate_vt100_fn_key_libuv)
643 TEST_ENTRY (tty_duplicate_vt100_fn_key_winvt)
644 TEST_ENTRY (tty_duplicate_alt_modifier_key)
645 TEST_ENTRY (tty_composing_character)
646 TEST_ENTRY (tty_cursor_up)
647 TEST_ENTRY (tty_cursor_down)
648 TEST_ENTRY (tty_cursor_forward)
649 TEST_ENTRY (tty_cursor_back)
650 TEST_ENTRY (tty_cursor_next_line)
651 TEST_ENTRY (tty_cursor_previous_line)
652 TEST_ENTRY (tty_cursor_horizontal_move_absolute)
653 TEST_ENTRY (tty_cursor_move_absolute)
654 TEST_ENTRY (tty_hide_show_cursor)
655 TEST_ENTRY (tty_set_cursor_shape)
656 TEST_ENTRY (tty_erase)
657 TEST_ENTRY (tty_erase_line)
658 TEST_ENTRY (tty_set_style)
659 TEST_ENTRY (tty_save_restore_cursor_position)
660 TEST_ENTRY (tty_full_reset)
661 TEST_ENTRY (tty_escape_sequence_processing)
662 #endif
663 TEST_ENTRY (tty_file)
664 TEST_ENTRY (tty_pty)
665 TEST_ENTRY (stdio_over_pipes)
666 TEST_ENTRY (stdio_emulate_iocp)
667 TEST_ENTRY (ip6_pton)
668 TEST_ENTRY (ip6_sin6_len)
669 TEST_ENTRY (connect_unspecified)
670 TEST_ENTRY (ipc_heavy_traffic_deadlock_bug)
671 TEST_ENTRY (ipc_listen_before_write)
672 TEST_ENTRY (ipc_listen_after_write)
673 #ifndef _WIN32
674 TEST_ENTRY (ipc_send_recv_pipe)
675 TEST_ENTRY (ipc_send_recv_pipe_inprocess)
676 #endif
677 TEST_ENTRY (ipc_send_recv_tcp)
678 TEST_ENTRY (ipc_send_recv_tcp_inprocess)
679 TEST_ENTRY (ipc_tcp_connection)
680 TEST_ENTRY (ipc_send_zero)
681
682 TEST_ENTRY (tcp_alloc_cb_fail)
683
684 TEST_ENTRY (tcp_ping_pong)
685 TEST_HELPER (tcp_ping_pong, tcp4_echo_server)
686
687 TEST_ENTRY (tcp_ping_pong_vec)
688 TEST_HELPER (tcp_ping_pong_vec, tcp4_echo_server)
689
690 TEST_ENTRY (tcp6_ping_pong)
691 TEST_HELPER (tcp6_ping_pong, tcp6_echo_server)
692
693 TEST_ENTRY (tcp6_ping_pong_vec)
694 TEST_HELPER (tcp6_ping_pong_vec, tcp6_echo_server)
695
696 TEST_ENTRY (pipe_ping_pong)
697 TEST_HELPER (pipe_ping_pong, pipe_echo_server)
698
699 TEST_ENTRY (pipe_ping_pong_vec)
700 TEST_HELPER (pipe_ping_pong_vec, pipe_echo_server)
701
702 TEST_ENTRY (delayed_accept)
703 TEST_ENTRY (multiple_listen)
704
705 #ifndef _WIN32
706 TEST_ENTRY (tcp_write_after_connect)
707 #endif
708
709 #ifdef __MVS__
710 TEST_ENTRY_CUSTOM (tcp_writealot, 0, 0, 20000)
711 #else
712 TEST_ENTRY (tcp_writealot)
713 #endif
714 TEST_HELPER (tcp_writealot, tcp4_echo_server)
715
716 TEST_ENTRY (tcp_write_fail)
717 TEST_HELPER (tcp_write_fail, tcp4_echo_server)
718
719 TEST_ENTRY (tcp_try_write)
720 TEST_ENTRY (tcp_write_in_a_row)
721 TEST_ENTRY (tcp_try_write_error)
722
723 TEST_ENTRY (tcp_write_queue_order)
724
725 TEST_ENTRY (tcp_open)
726 TEST_HELPER (tcp_open, tcp4_echo_server)
727 TEST_ENTRY (tcp_open_twice)
728 TEST_ENTRY (tcp_open_bound)
729 TEST_ENTRY (tcp_open_connected)
730 TEST_HELPER (tcp_open_connected, tcp4_echo_server)
731 TEST_ENTRY (tcp_write_ready)
732 TEST_HELPER (tcp_write_ready, tcp4_echo_server)
733
734 TEST_ENTRY (tcp_shutdown_after_write)
735 TEST_HELPER (tcp_shutdown_after_write, tcp4_echo_server)
736
737 TEST_ENTRY (tcp_connect_error_after_write)
738 TEST_ENTRY (tcp_bind_error_addrinuse_connect)
739 /* tcp4_echo_server steals the port. It needs to be a separate process
740 * because libuv sets setsockopt(SO_REUSEADDR) that lets you steal an
741 * existing bind if it originates from the same process.
742 */
743 TEST_HELPER (tcp_bind_error_addrinuse_connect, tcp4_echo_server)
744 TEST_ENTRY (tcp_bind_error_addrinuse_listen)
745 TEST_ENTRY (tcp_bind_error_addrnotavail_1)
746 TEST_ENTRY (tcp_bind_error_addrnotavail_2)
747 TEST_ENTRY (tcp_bind_error_fault)
748 TEST_ENTRY (tcp_bind_error_inval)
749 TEST_ENTRY (tcp_bind_localhost_ok)
750 TEST_ENTRY (tcp_bind_invalid_flags)
751 TEST_ENTRY (tcp_bind_writable_flags)
752 TEST_ENTRY (tcp_bind_or_listen_error_after_close)
753 TEST_ENTRY (tcp_listen_without_bind)
754 TEST_ENTRY (tcp_connect_error_fault)
755 TEST_ENTRY (tcp_connect6_error_fault)
756 TEST_ENTRY (tcp_connect6_link_local)
757 TEST_ENTRY (tcp_connect_timeout)
758 TEST_ENTRY (tcp_local_connect_timeout)
759 TEST_ENTRY (tcp6_local_connect_timeout)
760 TEST_ENTRY (tcp_close_while_connecting)
761 TEST_ENTRY (tcp_close_after_read_timeout)
762 TEST_ENTRY (tcp_close)
763 TEST_ENTRY (tcp_close_reset_accepted)
764 TEST_ENTRY (tcp_close_reset_accepted_after_shutdown)
765 TEST_ENTRY (tcp_close_reset_accepted_after_socket_shutdown)
766 TEST_ENTRY (tcp_close_reset_client)
767 TEST_ENTRY (tcp_close_reset_client_after_shutdown)
768 TEST_ENTRY (tcp_create_early)
769 TEST_ENTRY (tcp_create_early_bad_bind)
770 TEST_ENTRY (tcp_create_early_bad_domain)
771 TEST_ENTRY (tcp_create_early_accept)
772 #ifndef _WIN32
773 TEST_ENTRY (tcp_close_accept)
774 TEST_ENTRY (tcp_oob)
775 #endif
776 TEST_ENTRY (tcp_flags)
777 TEST_ENTRY (tcp_write_to_half_open_connection)
778 TEST_ENTRY (tcp_unexpected_read)
779
780 TEST_ENTRY (tcp_read_stop)
781 TEST_HELPER (tcp_read_stop, tcp4_echo_server)
782
783 TEST_ENTRY (tcp_read_stop_start)
784
785 TEST_ENTRY (tcp_reuseport)
786
787 TEST_ENTRY (tcp_rst)
788 TEST_HELPER (tcp_rst, tcp4_echo_server)
789
790 TEST_ENTRY (tcp_bind6_error_addrinuse)
791 TEST_ENTRY (tcp_bind6_error_addrnotavail)
792 TEST_ENTRY (tcp_bind6_error_fault)
793 TEST_ENTRY (tcp_bind6_error_inval)
794 TEST_ENTRY (tcp_bind6_localhost_ok)
795
796 TEST_ENTRY (udp_alloc_cb_fail)
797 TEST_ENTRY (udp_bind)
798 TEST_ENTRY (udp_bind_reuseaddr)
799 TEST_ENTRY (udp_connect)
800 TEST_ENTRY (udp_connect6)
801 TEST_ENTRY (udp_create_early)
802 TEST_ENTRY (udp_create_early_bad_bind)
803 TEST_ENTRY (udp_create_early_bad_domain)
804 TEST_ENTRY (udp_send_and_recv)
805 TEST_ENTRY (udp_send_hang_loop)
806 TEST_ENTRY (udp_send_immediate)
807 TEST_ENTRY (udp_send_unreachable)
808 TEST_ENTRY (udp_dgram_too_big)
809 TEST_ENTRY (udp_dual_stack)
810 TEST_ENTRY (udp_ipv6_only)
811 TEST_ENTRY (udp_options)
812 TEST_ENTRY (udp_options6)
813 TEST_ENTRY (udp_no_autobind)
814 TEST_ENTRY (udp_mmsg)
815 TEST_ENTRY (udp_multicast_interface)
816 TEST_ENTRY (udp_multicast_interface6)
817 TEST_ENTRY (udp_multicast_join)
818 TEST_ENTRY (udp_multicast_join6)
819 TEST_ENTRY (udp_multicast_ttl)
820 TEST_ENTRY (udp_sendmmsg_error)
821 TEST_ENTRY (udp_try_send)
822 TEST_ENTRY (udp_recv_in_a_row)
823 TEST_ENTRY (udp_reuseport)
824
825 TEST_ENTRY (udp_open)
826 TEST_ENTRY (udp_open_twice)
827 TEST_ENTRY (udp_open_bound)
828 TEST_ENTRY (udp_open_connect)
829 #ifndef _WIN32
830 TEST_ENTRY (udp_send_unix)
831 #endif
832
833 TEST_ENTRY (pipe_bind_error_addrinuse)
834 TEST_ENTRY (pipe_bind_error_addrnotavail)
835 TEST_ENTRY (pipe_bind_error_inval)
836 TEST_ENTRY (pipe_connect_close_multiple)
837 TEST_ENTRY (pipe_connect_multiple)
838 TEST_ENTRY (pipe_listen_without_bind)
839 TEST_ENTRY (pipe_bind_or_listen_error_after_close)
840 TEST_ENTRY (pipe_overlong_path)
841 TEST_ENTRY (pipe_getsockname)
842 TEST_ENTRY (pipe_getsockname_abstract)
843 TEST_ENTRY (pipe_getsockname_autobind)
844 TEST_ENTRY (pipe_getsockname_blocking)
845 TEST_ENTRY (pipe_pending_instances)
846 TEST_ENTRY (pipe_sendmsg)
847
848 TEST_ENTRY (connection_fail)
849 TEST_ENTRY (connection_fail_doesnt_auto_close)
850
851 TEST_ENTRY (shutdown_close_tcp)
852 TEST_HELPER (shutdown_close_tcp, tcp4_echo_server)
853 TEST_ENTRY (shutdown_close_pipe)
854 TEST_HELPER (shutdown_close_pipe, pipe_echo_server)
855
856 TEST_ENTRY (shutdown_eof)
857 TEST_HELPER (shutdown_eof, tcp4_echo_server)
858
859 TEST_ENTRY (shutdown_simultaneous)
860 TEST_HELPER (shutdown_simultaneous, tcp4_echo_server)
861
862 TEST_ENTRY (shutdown_twice)
863 TEST_HELPER (shutdown_twice, tcp4_echo_server)
864
865 TEST_ENTRY (callback_stack)
866 TEST_HELPER (callback_stack, tcp4_echo_server)
867
868 TEST_ENTRY (env_vars)
869
870 TEST_ENTRY (error_message)
871 TEST_ENTRY (sys_error)
872
873 TEST_ENTRY (timer)
874 TEST_ENTRY (timer_init)
875 TEST_ENTRY (timer_again)
876 TEST_ENTRY (timer_start_twice)
877 TEST_ENTRY (timer_order)
878 TEST_ENTRY (timer_zero_timeout)
879 TEST_ENTRY (timer_huge_timeout)
880 TEST_ENTRY (timer_huge_repeat)
881 TEST_ENTRY (timer_run_once)
882 TEST_ENTRY (timer_from_check)
883 TEST_ENTRY (timer_is_closing)
884 TEST_ENTRY (timer_null_callback)
885 TEST_ENTRY (timer_early_check)
886 TEST_ENTRY (timer_no_double_call_once)
887 TEST_ENTRY (timer_no_double_call_nowait)
888 TEST_ENTRY (timer_no_run_on_unref)
889
890 TEST_ENTRY (idle_starvation)
891 TEST_ENTRY (idle_check)
892
893 TEST_ENTRY (ref)
894 TEST_ENTRY (idle_ref)
895 TEST_ENTRY (fs_poll_ref)
896 TEST_ENTRY (async_ref)
897 TEST_ENTRY (prepare_ref)
898 TEST_ENTRY (check_ref)
899 TEST_ENTRY (unref_in_prepare_cb)
900 TEST_ENTRY (timer_ref)
901 TEST_ENTRY (timer_ref2)
902 TEST_ENTRY (fs_event_ref)
903 TEST_ENTRY (tcp_ref)
904 TEST_ENTRY (tcp_ref2)
905 TEST_ENTRY (tcp_ref2b)
906 TEST_ENTRY (tcp_ref3)
907 TEST_HELPER (tcp_ref3, tcp4_echo_server)
908 TEST_ENTRY (tcp_ref4)
909 TEST_HELPER (tcp_ref4, tcp4_echo_server)
910 TEST_ENTRY (udp_ref)
911 TEST_ENTRY (udp_ref2)
912 TEST_ENTRY (udp_ref3)
913 TEST_HELPER (udp_ref3, udp4_echo_server)
914 TEST_ENTRY (pipe_ref)
915 TEST_ENTRY (pipe_ref2)
916 TEST_ENTRY (pipe_ref3)
917 TEST_HELPER (pipe_ref3, pipe_echo_server)
918 TEST_ENTRY (pipe_ref4)
919 TEST_HELPER (pipe_ref4, pipe_echo_server)
920 TEST_ENTRY (process_ref)
921 TEST_ENTRY (process_priority)
922 TEST_ENTRY (has_ref)
923
924 TEST_ENTRY (loop_handles)
925 TEST_ENTRY (walk_handles)
926
927 TEST_ENTRY (watcher_cross_stop)
928
929 TEST_ENTRY (active)
930
931 TEST_ENTRY (embed)
932
933 TEST_ENTRY (async)
934 TEST_ENTRY (async_null_cb)
935 TEST_ENTRY (eintr_handling)
936
937 TEST_ENTRY (get_currentexe)
938
939 TEST_ENTRY (process_title)
940 TEST_ENTRY (process_title_big_argv)
941 TEST_ENTRY (process_title_threadsafe)
942
943 TEST_ENTRY (cwd_and_chdir)
944
945 TEST_ENTRY (get_memory)
946
947 TEST_ENTRY (get_passwd)
948 TEST_ENTRY (get_passwd2)
949 TEST_ENTRY (get_group)
950
951 TEST_ENTRY (get_loadavg)
952
953 TEST_ENTRY (handle_fileno)
954
955 TEST_ENTRY (homedir)
956
957 TEST_ENTRY (tmpdir)
958
959 TEST_ENTRY_CUSTOM (hrtime, 0, 0, 20000)
960
961 TEST_ENTRY (clock_gettime)
962
963 TEST_ENTRY_CUSTOM (getaddrinfo_fail, 0, 0, 10000)
964 TEST_ENTRY_CUSTOM (getaddrinfo_fail_sync, 0, 0, 10000)
965
966 TEST_ENTRY (getaddrinfo_basic)
967 TEST_ENTRY (getaddrinfo_basic_sync)
968 TEST_ENTRY (getaddrinfo_concurrent)
969
970 TEST_ENTRY (gethostname)
971
972 TEST_ENTRY (getnameinfo_basic_ip4)
973 TEST_ENTRY (getnameinfo_basic_ip4_sync)
974 TEST_ENTRY (getnameinfo_basic_ip6)
975
976 TEST_ENTRY (getsockname_tcp)
977 TEST_ENTRY (getsockname_udp)
978
979 TEST_ENTRY (gettimeofday)
980
981 TEST_ENTRY (poll_duplex)
982 TEST_ENTRY (poll_unidirectional)
983 TEST_ENTRY (poll_close)
984 TEST_ENTRY (poll_bad_fdtype)
985 #if (defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))) && \
986 !defined(__sun)
987 TEST_ENTRY (poll_oob)
988 #endif
989
990 #ifdef __linux__
991 TEST_ENTRY (poll_nested_epoll)
992 #endif
993 #ifdef UV_HAVE_KQUEUE
994 TEST_ENTRY (poll_nested_kqueue)
995 #endif
996 TEST_ENTRY (poll_multiple_handles)
997
998 TEST_ENTRY (socket_buffer_size)
999
1000 TEST_ENTRY (spawn_fails)
1001 #ifndef _WIN32
1002 TEST_ENTRY (spawn_fails_check_for_waitpid_cleanup)
1003 #endif
1004 TEST_ENTRY (spawn_empty_env)
1005 TEST_ENTRY (spawn_exit_code)
1006 TEST_ENTRY (spawn_stdout)
1007 TEST_ENTRY (spawn_stdin)
1008 TEST_ENTRY (spawn_stdio_greater_than_3)
1009 TEST_ENTRY (spawn_ignored_stdio)
1010 TEST_ENTRY (spawn_and_kill)
1011 TEST_ENTRY (spawn_detached)
1012 TEST_ENTRY (spawn_and_kill_with_std)
1013 TEST_ENTRY (spawn_and_ping)
1014 TEST_ENTRY (spawn_preserve_env)
1015 TEST_ENTRY (spawn_same_stdout_stderr)
1016 TEST_ENTRY (spawn_setuid_fails)
1017 TEST_ENTRY (spawn_setgid_fails)
1018 TEST_ENTRY (spawn_stdout_to_file)
1019 TEST_ENTRY (spawn_stdout_and_stderr_to_file)
1020 TEST_ENTRY (spawn_stdout_and_stderr_to_file2)
1021 TEST_ENTRY (spawn_stdout_and_stderr_to_file_swap)
1022 TEST_ENTRY (spawn_auto_unref)
1023 TEST_ENTRY (spawn_closed_process_io)
1024 TEST_ENTRY (spawn_reads_child_path)
1025 TEST_ENTRY (spawn_inherit_streams)
1026 TEST_ENTRY (spawn_quoted_path)
1027 TEST_ENTRY (spawn_tcp_server)
1028 TEST_ENTRY (spawn_exercise_sigchld_issue)
1029 TEST_ENTRY (spawn_relative_path)
1030 TEST_ENTRY (fs_poll)
1031 TEST_ENTRY (fs_poll_getpath)
1032 TEST_ENTRY (fs_poll_close_request)
1033 TEST_ENTRY (fs_poll_close_request_multi_start_stop)
1034 TEST_ENTRY (fs_poll_close_request_multi_stop_start)
1035 TEST_ENTRY (fs_poll_close_request_stop_when_active)
1036 TEST_ENTRY (kill)
1037 TEST_ENTRY (kill_invalid_signum)
1038
1039 TEST_ENTRY (poll_close_doesnt_corrupt_stack)
1040 TEST_ENTRY (poll_closesocket)
1041 TEST_ENTRY (close_fd)
1042 TEST_ENTRY (closed_fd_events)
1043 TEST_ENTRY (spawn_fs_open)
1044 #ifdef _WIN32
1045 TEST_ENTRY (spawn_detect_pipe_name_collisions_on_windows)
1046 #if !defined(USING_UV_SHARED)
1047 TEST_ENTRY (argument_escaping)
1048 TEST_ENTRY (environment_creation)
1049 # endif
1050 TEST_ENTRY (listen_with_simultaneous_accepts)
1051 TEST_ENTRY (listen_no_simultaneous_accepts)
1052 TEST_ENTRY (fs_stat_root)
1053 TEST_ENTRY (fs_stat_no_permission)
1054 TEST_ENTRY (spawn_with_an_odd_path)
1055 TEST_ENTRY (spawn_no_path)
1056 TEST_ENTRY (spawn_no_ext)
1057 TEST_ENTRY (spawn_path_no_ext)
1058 TEST_ENTRY (ipc_listen_after_bind_twice)
1059 TEST_ENTRY (win32_signum_number)
1060 #else
1061 TEST_ENTRY (emfile)
1062 TEST_ENTRY (spawn_setuid_setgid)
1063 TEST_ENTRY (we_get_signal)
1064 TEST_ENTRY (we_get_signals)
1065 TEST_ENTRY (we_get_signal_one_shot)
1066 TEST_ENTRY (we_get_signals_mixed)
1067 TEST_ENTRY (signal_multiple_loops)
1068 TEST_ENTRY (signal_pending_on_close)
1069 TEST_ENTRY (signal_close_loop_alive)
1070 #endif
1071
1072 #ifdef __APPLE__
1073 TEST_ENTRY (osx_select)
1074 TEST_ENTRY (osx_select_many_fds)
1075 #endif
1076
1077 TEST_ENTRY (fs_file_noent)
1078 TEST_ENTRY (fs_file_nametoolong)
1079 TEST_ENTRY (fs_file_loop)
1080 TEST_ENTRY (fs_file_async)
1081 TEST_ENTRY (fs_file_sync)
1082 TEST_ENTRY (fs_posix_delete)
1083 TEST_ENTRY (fs_file_write_null_buffer)
1084 TEST_ENTRY (fs_async_dir)
1085 TEST_ENTRY (fs_async_sendfile)
1086 TEST_ENTRY (fs_async_sendfile_nodata)
1087 TEST_ENTRY (fs_mkdtemp)
1088 TEST_ENTRY (fs_mkstemp)
1089 TEST_ENTRY (fs_fstat)
1090 TEST_ENTRY (fs_fstat_stdio)
1091 TEST_ENTRY (fs_fstat_st_dev)
1092 TEST_ENTRY (fs_access)
1093 TEST_ENTRY (fs_chmod)
1094 TEST_ENTRY (fs_copyfile)
1095 TEST_ENTRY (fs_unlink_readonly)
1096 #ifdef _WIN32
1097 TEST_ENTRY (fs_unlink_archive_readonly)
1098 #endif
1099 TEST_ENTRY (fs_chown)
1100 TEST_ENTRY (fs_link)
1101 TEST_ENTRY (fs_utime)
1102 TEST_ENTRY (fs_utime_round)
1103 TEST_ENTRY (fs_futime)
1104 TEST_ENTRY (fs_lutime)
1105 TEST_ENTRY (fs_readlink)
1106 TEST_ENTRY (fs_realpath)
1107 TEST_ENTRY (fs_symlink)
1108 TEST_ENTRY (fs_symlink_dir)
1109 #ifdef _WIN32
1110 TEST_ENTRY (fs_symlink_junction)
1111 TEST_ENTRY (fs_non_symlink_reparse_point)
1112 TEST_ENTRY (fs_lstat_windows_store_apps)
1113 TEST_ENTRY (fs_open_flags)
1114 #endif
1115 #if defined(_WIN32) && !defined(USING_UV_SHARED)
1116 TEST_ENTRY (fs_fd_hash)
1117 #endif
1118 TEST_ENTRY (fs_statfs)
1119 TEST_ENTRY (fs_stat_batch_multiple)
1120 TEST_ENTRY (fs_stat_missing_path)
1121 TEST_ENTRY (fs_read_bufs)
1122 TEST_ENTRY (fs_read_file_eof)
1123 TEST_ENTRY (fs_file_open_append)
1124 TEST_ENTRY (fs_event_watch_dir)
1125 TEST_ENTRY (fs_event_watch_delete_dir)
1126 TEST_ENTRY (fs_event_watch_dir_recursive)
1127 #ifdef _WIN32
1128 TEST_ENTRY (fs_event_watch_dir_short_path)
1129 #endif
1130 TEST_ENTRY (fs_event_watch_file)
1131 TEST_ENTRY (fs_event_watch_file_exact_path)
1132 TEST_ENTRY (fs_event_watch_file_twice)
1133 TEST_ENTRY (fs_event_watch_file_current_dir)
1134 #ifdef _WIN32
1135 TEST_ENTRY (fs_event_watch_file_root_dir)
1136 #endif
1137 TEST_ENTRY (fs_event_watch_invalid_path)
1138 TEST_ENTRY (fs_event_no_callback_after_close)
1139 TEST_ENTRY (fs_event_no_callback_on_close)
1140 TEST_ENTRY (fs_event_immediate_close)
1141 TEST_ENTRY (fs_event_close_with_pending_event)
1142 TEST_ENTRY (fs_event_close_with_pending_delete_event)
1143 TEST_ENTRY (fs_event_close_in_callback)
1144 TEST_ENTRY (fs_event_start_and_close)
1145 TEST_ENTRY (fs_event_getpath)
1146 TEST_ENTRY (fs_event_stop_in_cb)
1147 TEST_ENTRY (fs_scandir_empty_dir)
1148 TEST_ENTRY (fs_scandir_non_existent_dir)
1149 TEST_ENTRY (fs_scandir_file)
1150 TEST_ENTRY (fs_scandir_early_exit)
1151 TEST_ENTRY (fs_open_dir)
1152 TEST_ENTRY (fs_readdir_empty_dir)
1153 TEST_ENTRY (fs_readdir_file)
1154 TEST_ENTRY (fs_readdir_non_empty_dir)
1155 TEST_ENTRY (fs_readdir_non_existing_dir)
1156 #ifdef _WIN32
1157 TEST_ENTRY (fs_readdir_symlink)
1158 #endif
1159 TEST_ENTRY (fs_rename_to_existing_file)
1160 TEST_ENTRY (fs_write_multiple_bufs)
1161 TEST_ENTRY (fs_write_alotof_bufs)
1162 TEST_ENTRY (fs_write_alotof_bufs_with_offset)
1163 TEST_ENTRY (fs_partial_read)
1164 TEST_ENTRY (fs_partial_write)
1165 TEST_ENTRY (fs_read_write_null_arguments)
1166 TEST_ENTRY (fs_file_pos_after_op_with_offset)
1167 TEST_ENTRY (fs_null_req)
1168 TEST_ENTRY (fs_read_dir)
1169 #ifdef _WIN32
1170 TEST_ENTRY (fs_file_pos_write)
1171 TEST_ENTRY (fs_file_pos_append)
1172 TEST_ENTRY (fs_exclusive_sharing_mode)
1173 TEST_ENTRY (fs_file_flag_no_buffering)
1174 TEST_ENTRY (fs_open_readonly_acl)
1175 TEST_ENTRY (fs_fchmod_archive_readonly)
1176 TEST_ENTRY (fs_invalid_mkdir_name)
1177 TEST_ENTRY (fs_wtf)
1178 #endif
1179 TEST_ENTRY (fs_get_system_error)
1180 TEST_ENTRY (get_osfhandle_valid_handle)
1181 TEST_ENTRY (open_osfhandle_valid_handle)
1182 TEST_ENTRY (strscpy)
1183 TEST_ENTRY (strtok)
1184 TEST_ENTRY (threadpool_queue_work_simple)
1185 TEST_ENTRY (threadpool_queue_work_einval)
1186 TEST_ENTRY_CUSTOM (threadpool_multiple_event_loops, 0, 0, 60000)
1187 TEST_ENTRY (threadpool_cancel_getaddrinfo)
1188 TEST_ENTRY (threadpool_cancel_getnameinfo)
1189 TEST_ENTRY (threadpool_cancel_random)
1190 TEST_ENTRY (threadpool_cancel_work)
1191 TEST_ENTRY (threadpool_cancel_fs)
1192 TEST_ENTRY (threadpool_cancel_single)
1193 TEST_ENTRY (threadpool_cancel_when_busy)
1194 TEST_ENTRY (thread_detach)
1195 TEST_ENTRY (thread_local_storage)
1196 TEST_ENTRY (thread_stack_size)
1197 TEST_ENTRY (thread_stack_size_explicit)
1198 TEST_ENTRY (thread_mutex)
1199 TEST_ENTRY (thread_mutex_recursive)
1200 TEST_ENTRY (thread_rwlock)
1201 TEST_ENTRY (thread_rwlock_trylock)
1202 TEST_ENTRY (thread_create)
1203 TEST_ENTRY (thread_equal)
1204 TEST_ENTRY (thread_affinity)
1205 TEST_ENTRY (thread_priority)
1206 TEST_ENTRY (thread_name)
1207 TEST_ENTRY (thread_name_threadpool)
1208 TEST_ENTRY (dlerror)
1209 TEST_ENTRY (ip4_addr)
1210 TEST_ENTRY (ip6_addr_link_local)
1211 TEST_ENTRY (ip_name)
1212
1213 TEST_ENTRY (queue_foreach_delete)
1214
1215 TEST_ENTRY (random_async)
1216 TEST_ENTRY (random_sync)
1217
1218 TEST_ENTRY (handle_type_name)
1219 TEST_ENTRY (req_type_name)
1220 TEST_ENTRY (getters_setters)
1221
1222 #ifndef _WIN32
1223 TEST_ENTRY (fork_timer)
1224 TEST_ENTRY (fork_socketpair)
1225 TEST_ENTRY (fork_socketpair_started)
1226 TEST_ENTRY (fork_signal_to_child)
1227 TEST_ENTRY (fork_signal_to_child_closed)
1228 TEST_ENTRY (fork_close_signal_in_child)
1229 #ifndef __APPLE__
1230 TEST_ENTRY (fork_fs_events_child)
1231 TEST_ENTRY (fork_fs_events_child_dir)
1232 TEST_ENTRY (fork_fs_events_file_parent_child)
1233 #endif
1234 #ifndef __MVS__
1235 TEST_ENTRY (fork_threadpool_queue_work_simple)
1236 #endif
1237 #endif
1238
1239 TEST_ENTRY (iouring_pollhup)
1240
1241 TEST_ENTRY (wtf8)
1242 TEST_ENTRY (utf8_decode1)
1243 TEST_ENTRY (utf8_decode1_overrun)
1244 TEST_ENTRY (uname)
1245
1246 /* Doesn't work on z/OS because that platform uses EBCDIC, not ASCII. */
1247 #ifndef __MVS__
1248 TEST_ENTRY (idna_toascii)
1249 #endif
1250
1251 TEST_ENTRY (not_writable_after_shutdown)
1252 TEST_HELPER (not_writable_after_shutdown, tcp4_echo_server)
1253 TEST_ENTRY (not_readable_nor_writable_on_read_error)
1254 TEST_HELPER (not_readable_nor_writable_on_read_error, tcp4_echo_server)
1255 TEST_ENTRY (readable_on_eof)
1256 TEST_HELPER (readable_on_eof, tcp4_echo_server)
1257
1258 TEST_ENTRY (metrics_info_check)
1259 TEST_ENTRY (metrics_pool_events)
1260 TEST_ENTRY (metrics_idle_time)
1261 TEST_ENTRY (metrics_idle_time_thread)
1262 TEST_ENTRY (metrics_idle_time_zero)
1263
1264 #if 0
1265 /* These are for testing the test runner. */
1266 TEST_ENTRY (fail_always)
1267 TEST_ENTRY (pass_always)
1268 #endif
1269 TASK_LIST_END