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