2011-04-18 11:10:18 -07:00
|
|
|
/* Copyright Joyent, Inc. and other Node contributors. All rights reserved.
|
|
|
|
*
|
|
|
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
|
|
* of this software and associated documentation files (the "Software"), to
|
|
|
|
* deal in the Software without restriction, including without limitation the
|
|
|
|
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
|
|
|
* sell copies of the Software, and to permit persons to whom the Software is
|
|
|
|
* furnished to do so, subject to the following conditions:
|
|
|
|
*
|
|
|
|
* The above copyright notice and this permission notice shall be included in
|
|
|
|
* all copies or substantial portions of the Software.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
|
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
|
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
|
|
* IN THE SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2016-05-23 20:03:30 +02:00
|
|
|
#include "uv.h"
|
|
|
|
|
2011-12-13 01:29:27 -08:00
|
|
|
TEST_DECLARE (platform_output)
|
2012-05-22 16:04:09 +02:00
|
|
|
TEST_DECLARE (callback_order)
|
2013-05-29 09:51:04 +02:00
|
|
|
TEST_DECLARE (close_order)
|
2012-05-23 20:30:59 +02:00
|
|
|
TEST_DECLARE (run_once)
|
2012-12-18 16:10:11 +01:00
|
|
|
TEST_DECLARE (run_nowait)
|
2013-05-17 13:29:26 -07:00
|
|
|
TEST_DECLARE (loop_alive)
|
2014-02-17 22:37:20 +01:00
|
|
|
TEST_DECLARE (loop_close)
|
2013-01-16 09:36:20 +01:00
|
|
|
TEST_DECLARE (loop_stop)
|
2013-12-10 09:13:34 +01:00
|
|
|
TEST_DECLARE (loop_update_time)
|
2014-07-31 21:35:32 -04:00
|
|
|
TEST_DECLARE (loop_backend_timeout)
|
2014-12-25 14:11:55 +01:00
|
|
|
TEST_DECLARE (loop_configure)
|
2014-09-08 21:47:50 +02:00
|
|
|
TEST_DECLARE (default_loop_close)
|
2012-10-09 21:44:20 +09:00
|
|
|
TEST_DECLARE (barrier_1)
|
|
|
|
TEST_DECLARE (barrier_2)
|
|
|
|
TEST_DECLARE (barrier_3)
|
2012-10-05 13:03:03 +02:00
|
|
|
TEST_DECLARE (condvar_1)
|
|
|
|
TEST_DECLARE (condvar_2)
|
|
|
|
TEST_DECLARE (condvar_3)
|
|
|
|
TEST_DECLARE (condvar_4)
|
|
|
|
TEST_DECLARE (condvar_5)
|
2012-06-03 03:17:21 +02:00
|
|
|
TEST_DECLARE (semaphore_1)
|
|
|
|
TEST_DECLARE (semaphore_2)
|
|
|
|
TEST_DECLARE (semaphore_3)
|
2011-09-15 15:16:53 -07:00
|
|
|
TEST_DECLARE (tty)
|
2016-05-11 13:03:30 +01:00
|
|
|
#ifdef _WIN32
|
|
|
|
TEST_DECLARE (tty_raw)
|
2016-11-16 16:16:54 +01:00
|
|
|
TEST_DECLARE (tty_empty_write)
|
2016-11-16 16:17:12 +01:00
|
|
|
TEST_DECLARE (tty_large_write)
|
2016-05-11 13:03:30 +01:00
|
|
|
#endif
|
2015-03-11 16:05:56 +01:00
|
|
|
TEST_DECLARE (tty_file)
|
2016-03-23 23:18:53 +01:00
|
|
|
TEST_DECLARE (tty_pty)
|
2011-10-19 00:48:38 -07:00
|
|
|
TEST_DECLARE (stdio_over_pipes)
|
2014-04-14 15:22:08 +04:00
|
|
|
TEST_DECLARE (ip6_pton)
|
2011-10-25 13:07:29 -07:00
|
|
|
TEST_DECLARE (ipc_listen_before_write)
|
|
|
|
TEST_DECLARE (ipc_listen_after_write)
|
2012-04-12 03:33:53 +02:00
|
|
|
#ifndef _WIN32
|
2012-03-09 03:16:08 +01:00
|
|
|
TEST_DECLARE (ipc_send_recv_pipe)
|
2015-10-28 11:40:51 -07:00
|
|
|
TEST_DECLARE (ipc_send_recv_pipe_inprocess)
|
2012-04-12 03:33:53 +02:00
|
|
|
#endif
|
2012-03-09 03:16:08 +01:00
|
|
|
TEST_DECLARE (ipc_send_recv_tcp)
|
2015-10-28 11:40:51 -07:00
|
|
|
TEST_DECLARE (ipc_send_recv_tcp_inprocess)
|
2012-03-08 12:02:50 -08:00
|
|
|
TEST_DECLARE (ipc_tcp_connection)
|
2016-08-16 00:15:54 +02:00
|
|
|
TEST_DECLARE (tcp_alloc_cb_fail)
|
2011-07-01 17:54:17 -07:00
|
|
|
TEST_DECLARE (tcp_ping_pong)
|
|
|
|
TEST_DECLARE (tcp_ping_pong_v6)
|
|
|
|
TEST_DECLARE (pipe_ping_pong)
|
2011-04-22 00:45:49 +02:00
|
|
|
TEST_DECLARE (delayed_accept)
|
2011-10-26 13:32:15 -07:00
|
|
|
TEST_DECLARE (multiple_listen)
|
2014-08-21 10:59:35 +02:00
|
|
|
#ifndef _WIN32
|
|
|
|
TEST_DECLARE (tcp_write_after_connect)
|
|
|
|
#endif
|
2011-04-22 05:12:10 +02:00
|
|
|
TEST_DECLARE (tcp_writealot)
|
2015-05-05 23:09:23 +02:00
|
|
|
TEST_DECLARE (tcp_write_fail)
|
2013-12-06 19:10:47 +04:00
|
|
|
TEST_DECLARE (tcp_try_write)
|
2014-07-06 14:43:59 +02:00
|
|
|
TEST_DECLARE (tcp_write_queue_order)
|
2012-09-17 12:15:12 +02:00
|
|
|
TEST_DECLARE (tcp_open)
|
2015-06-18 00:41:44 +02:00
|
|
|
TEST_DECLARE (tcp_open_twice)
|
2012-06-04 17:18:02 +02:00
|
|
|
TEST_DECLARE (tcp_connect_error_after_write)
|
2012-06-04 23:18:32 +02:00
|
|
|
TEST_DECLARE (tcp_shutdown_after_write)
|
2011-07-21 02:00:12 +02:00
|
|
|
TEST_DECLARE (tcp_bind_error_addrinuse)
|
|
|
|
TEST_DECLARE (tcp_bind_error_addrnotavail_1)
|
|
|
|
TEST_DECLARE (tcp_bind_error_addrnotavail_2)
|
|
|
|
TEST_DECLARE (tcp_bind_error_fault)
|
|
|
|
TEST_DECLARE (tcp_bind_error_inval)
|
|
|
|
TEST_DECLARE (tcp_bind_localhost_ok)
|
2014-04-22 22:45:58 +02:00
|
|
|
TEST_DECLARE (tcp_bind_invalid_flags)
|
2011-07-21 02:00:12 +02:00
|
|
|
TEST_DECLARE (tcp_listen_without_bind)
|
2012-05-17 11:44:05 +02:00
|
|
|
TEST_DECLARE (tcp_connect_error_fault)
|
2012-05-17 11:43:33 +02:00
|
|
|
TEST_DECLARE (tcp_connect_timeout)
|
2012-06-06 16:00:53 +02:00
|
|
|
TEST_DECLARE (tcp_close_while_connecting)
|
2011-09-09 23:53:09 +02:00
|
|
|
TEST_DECLARE (tcp_close)
|
2015-06-17 00:34:58 +02:00
|
|
|
TEST_DECLARE (tcp_create_early)
|
|
|
|
TEST_DECLARE (tcp_create_early_bad_bind)
|
|
|
|
TEST_DECLARE (tcp_create_early_bad_domain)
|
|
|
|
TEST_DECLARE (tcp_create_early_accept)
|
2014-08-05 00:14:26 +02:00
|
|
|
#ifndef _WIN32
|
2013-10-25 12:56:37 +04:00
|
|
|
TEST_DECLARE (tcp_close_accept)
|
2015-02-24 16:16:22 +03:00
|
|
|
TEST_DECLARE (tcp_oob)
|
2014-08-05 00:14:26 +02:00
|
|
|
#endif
|
2011-10-21 15:37:47 -07:00
|
|
|
TEST_DECLARE (tcp_flags)
|
2011-11-07 15:48:33 -08:00
|
|
|
TEST_DECLARE (tcp_write_to_half_open_connection)
|
2012-06-30 02:59:29 +02:00
|
|
|
TEST_DECLARE (tcp_unexpected_read)
|
2012-12-13 16:37:12 +01:00
|
|
|
TEST_DECLARE (tcp_read_stop)
|
2011-07-21 02:00:12 +02:00
|
|
|
TEST_DECLARE (tcp_bind6_error_addrinuse)
|
|
|
|
TEST_DECLARE (tcp_bind6_error_addrnotavail)
|
|
|
|
TEST_DECLARE (tcp_bind6_error_fault)
|
|
|
|
TEST_DECLARE (tcp_bind6_error_inval)
|
|
|
|
TEST_DECLARE (tcp_bind6_localhost_ok)
|
2016-08-16 00:15:54 +02:00
|
|
|
TEST_DECLARE (udp_alloc_cb_fail)
|
2014-03-31 09:56:37 +02:00
|
|
|
TEST_DECLARE (udp_bind)
|
|
|
|
TEST_DECLARE (udp_bind_reuseaddr)
|
2015-06-17 00:34:58 +02:00
|
|
|
TEST_DECLARE (udp_create_early)
|
|
|
|
TEST_DECLARE (udp_create_early_bad_bind)
|
|
|
|
TEST_DECLARE (udp_create_early_bad_domain)
|
2011-08-19 23:22:30 +02:00
|
|
|
TEST_DECLARE (udp_send_and_recv)
|
2017-04-18 17:59:32 -06:00
|
|
|
TEST_DECLARE (udp_send_hang_loop)
|
2014-07-11 22:42:55 +02:00
|
|
|
TEST_DECLARE (udp_send_immediate)
|
2014-08-27 21:50:48 +02:00
|
|
|
TEST_DECLARE (udp_send_unreachable)
|
2011-09-29 19:29:15 -04:00
|
|
|
TEST_DECLARE (udp_multicast_join)
|
2014-03-17 10:06:25 +01:00
|
|
|
TEST_DECLARE (udp_multicast_join6)
|
2012-01-19 11:07:28 -05:00
|
|
|
TEST_DECLARE (udp_multicast_ttl)
|
2013-01-22 10:47:31 -08:00
|
|
|
TEST_DECLARE (udp_multicast_interface)
|
2014-03-28 00:39:09 +01:00
|
|
|
TEST_DECLARE (udp_multicast_interface6)
|
2011-08-19 23:22:30 +02:00
|
|
|
TEST_DECLARE (udp_dgram_too_big)
|
|
|
|
TEST_DECLARE (udp_dual_stack)
|
|
|
|
TEST_DECLARE (udp_ipv6_only)
|
2012-01-28 02:16:00 +01:00
|
|
|
TEST_DECLARE (udp_options)
|
2015-01-01 13:15:57 +01:00
|
|
|
TEST_DECLARE (udp_options6)
|
2014-05-07 11:12:19 +02:00
|
|
|
TEST_DECLARE (udp_no_autobind)
|
2012-09-17 12:15:12 +02:00
|
|
|
TEST_DECLARE (udp_open)
|
2015-06-18 00:41:44 +02:00
|
|
|
TEST_DECLARE (udp_open_twice)
|
2014-06-30 00:01:10 +02:00
|
|
|
TEST_DECLARE (udp_try_send)
|
2011-07-21 02:00:12 +02:00
|
|
|
TEST_DECLARE (pipe_bind_error_addrinuse)
|
|
|
|
TEST_DECLARE (pipe_bind_error_addrnotavail)
|
|
|
|
TEST_DECLARE (pipe_bind_error_inval)
|
2015-08-20 10:49:21 +02:00
|
|
|
TEST_DECLARE (pipe_connect_multiple)
|
2011-07-21 02:00:12 +02:00
|
|
|
TEST_DECLARE (pipe_listen_without_bind)
|
2011-11-03 15:46:36 -07:00
|
|
|
TEST_DECLARE (pipe_connect_bad_name)
|
2012-03-01 12:11:12 -08:00
|
|
|
TEST_DECLARE (pipe_connect_to_file)
|
2015-05-08 09:33:47 +02:00
|
|
|
TEST_DECLARE (pipe_connect_on_prepare)
|
2013-12-17 00:15:54 +01:00
|
|
|
TEST_DECLARE (pipe_getsockname)
|
|
|
|
TEST_DECLARE (pipe_getsockname_abstract)
|
2014-07-15 01:49:11 -04:00
|
|
|
TEST_DECLARE (pipe_getsockname_blocking)
|
2015-08-20 10:53:20 +02:00
|
|
|
TEST_DECLARE (pipe_pending_instances)
|
2013-12-22 14:45:00 +04:00
|
|
|
TEST_DECLARE (pipe_sendmsg)
|
2013-12-20 19:40:02 -08:00
|
|
|
TEST_DECLARE (pipe_server_close)
|
2011-04-22 00:45:49 +02:00
|
|
|
TEST_DECLARE (connection_fail)
|
2011-06-02 09:19:56 +02:00
|
|
|
TEST_DECLARE (connection_fail_doesnt_auto_close)
|
2012-03-09 04:29:45 +01:00
|
|
|
TEST_DECLARE (shutdown_close_tcp)
|
|
|
|
TEST_DECLARE (shutdown_close_pipe)
|
2011-06-02 11:31:42 +02:00
|
|
|
TEST_DECLARE (shutdown_eof)
|
2014-02-14 22:27:45 -05:00
|
|
|
TEST_DECLARE (shutdown_twice)
|
2011-05-04 17:10:33 +02:00
|
|
|
TEST_DECLARE (callback_stack)
|
2017-02-28 00:21:26 -05:00
|
|
|
TEST_DECLARE (env_vars)
|
2011-10-06 01:00:56 +02:00
|
|
|
TEST_DECLARE (error_message)
|
2016-09-18 15:18:48 -04:00
|
|
|
TEST_DECLARE (sys_error)
|
2011-05-17 01:17:48 +02:00
|
|
|
TEST_DECLARE (timer)
|
2013-03-04 22:17:50 -06:00
|
|
|
TEST_DECLARE (timer_init)
|
2011-05-19 01:58:07 +02:00
|
|
|
TEST_DECLARE (timer_again)
|
2012-05-26 02:09:35 +02:00
|
|
|
TEST_DECLARE (timer_start_twice)
|
2013-02-07 13:59:17 +09:00
|
|
|
TEST_DECLARE (timer_order)
|
2013-03-21 14:47:38 +01:00
|
|
|
TEST_DECLARE (timer_huge_timeout)
|
|
|
|
TEST_DECLARE (timer_huge_repeat)
|
2013-05-25 10:37:08 +02:00
|
|
|
TEST_DECLARE (timer_run_once)
|
2013-06-26 13:02:39 +02:00
|
|
|
TEST_DECLARE (timer_from_check)
|
2014-09-04 14:17:59 +02:00
|
|
|
TEST_DECLARE (timer_null_callback)
|
2015-06-02 20:02:55 +01:00
|
|
|
TEST_DECLARE (timer_early_check)
|
2011-07-21 02:51:26 +02:00
|
|
|
TEST_DECLARE (idle_starvation)
|
2011-05-08 04:44:55 +02:00
|
|
|
TEST_DECLARE (loop_handles)
|
2012-01-14 00:11:27 +01:00
|
|
|
TEST_DECLARE (get_loadavg)
|
2012-05-30 01:51:28 +02:00
|
|
|
TEST_DECLARE (walk_handles)
|
2013-10-30 21:43:23 +04:00
|
|
|
TEST_DECLARE (watcher_cross_stop)
|
2011-05-20 08:22:19 -07:00
|
|
|
TEST_DECLARE (ref)
|
|
|
|
TEST_DECLARE (idle_ref)
|
|
|
|
TEST_DECLARE (async_ref)
|
|
|
|
TEST_DECLARE (prepare_ref)
|
|
|
|
TEST_DECLARE (check_ref)
|
2011-07-21 14:53:40 +02:00
|
|
|
TEST_DECLARE (unref_in_prepare_cb)
|
2012-01-14 00:11:27 +01:00
|
|
|
TEST_DECLARE (timer_ref)
|
|
|
|
TEST_DECLARE (timer_ref2)
|
|
|
|
TEST_DECLARE (fs_event_ref)
|
2012-06-14 07:30:08 +02:00
|
|
|
TEST_DECLARE (fs_poll_ref)
|
2012-01-14 00:11:27 +01:00
|
|
|
TEST_DECLARE (tcp_ref)
|
|
|
|
TEST_DECLARE (tcp_ref2)
|
2012-10-25 15:10:16 +02:00
|
|
|
TEST_DECLARE (tcp_ref2b)
|
2012-01-14 00:11:27 +01:00
|
|
|
TEST_DECLARE (tcp_ref3)
|
2012-03-09 04:26:51 +01:00
|
|
|
TEST_DECLARE (tcp_ref4)
|
2012-01-14 00:11:27 +01:00
|
|
|
TEST_DECLARE (udp_ref)
|
|
|
|
TEST_DECLARE (udp_ref2)
|
|
|
|
TEST_DECLARE (udp_ref3)
|
|
|
|
TEST_DECLARE (pipe_ref)
|
|
|
|
TEST_DECLARE (pipe_ref2)
|
|
|
|
TEST_DECLARE (pipe_ref3)
|
2012-03-09 04:26:51 +01:00
|
|
|
TEST_DECLARE (pipe_ref4)
|
2014-08-14 16:38:56 -07:00
|
|
|
#ifndef _WIN32
|
|
|
|
TEST_DECLARE (pipe_close_stdout_read_stdin)
|
|
|
|
#endif
|
2015-02-09 12:53:52 +01:00
|
|
|
TEST_DECLARE (pipe_set_non_blocking)
|
2012-01-14 00:11:27 +01:00
|
|
|
TEST_DECLARE (process_ref)
|
2013-04-17 00:16:42 +02:00
|
|
|
TEST_DECLARE (has_ref)
|
2012-08-27 23:57:48 +02:00
|
|
|
TEST_DECLARE (active)
|
2012-11-26 14:20:11 +04:00
|
|
|
TEST_DECLARE (embed)
|
2011-05-09 04:29:22 +02:00
|
|
|
TEST_DECLARE (async)
|
2013-08-12 08:42:49 +02:00
|
|
|
TEST_DECLARE (async_null_cb)
|
2015-12-19 22:21:07 -08:00
|
|
|
TEST_DECLARE (eintr_handling)
|
2011-05-20 18:05:37 -07:00
|
|
|
TEST_DECLARE (get_currentexe)
|
2011-12-13 01:29:27 -08:00
|
|
|
TEST_DECLARE (process_title)
|
2011-11-30 15:31:39 -08:00
|
|
|
TEST_DECLARE (cwd_and_chdir)
|
2011-10-01 15:45:42 +07:00
|
|
|
TEST_DECLARE (get_memory)
|
2016-03-01 15:41:01 -05:00
|
|
|
TEST_DECLARE (get_passwd)
|
2014-08-22 09:57:43 +02:00
|
|
|
TEST_DECLARE (handle_fileno)
|
2015-05-12 09:17:19 -04:00
|
|
|
TEST_DECLARE (homedir)
|
2016-01-04 16:52:44 -05:00
|
|
|
TEST_DECLARE (tmpdir)
|
2011-06-17 11:47:35 +02:00
|
|
|
TEST_DECLARE (hrtime)
|
2013-03-26 22:29:06 +01:00
|
|
|
TEST_DECLARE (getaddrinfo_fail)
|
2015-01-20 09:43:57 +01:00
|
|
|
TEST_DECLARE (getaddrinfo_fail_sync)
|
2011-06-25 15:33:52 +02:00
|
|
|
TEST_DECLARE (getaddrinfo_basic)
|
2015-01-20 09:43:57 +01:00
|
|
|
TEST_DECLARE (getaddrinfo_basic_sync)
|
2011-06-25 15:33:52 +02:00
|
|
|
TEST_DECLARE (getaddrinfo_concurrent)
|
2014-05-11 12:51:08 +02:00
|
|
|
TEST_DECLARE (getnameinfo_basic_ip4)
|
2015-01-20 09:43:57 +01:00
|
|
|
TEST_DECLARE (getnameinfo_basic_ip4_sync)
|
2014-05-11 12:51:08 +02:00
|
|
|
TEST_DECLARE (getnameinfo_basic_ip6)
|
2011-08-25 02:30:10 +02:00
|
|
|
TEST_DECLARE (getsockname_tcp)
|
|
|
|
TEST_DECLARE (getsockname_udp)
|
2011-04-19 14:51:10 +02:00
|
|
|
TEST_DECLARE (fail_always)
|
|
|
|
TEST_DECLARE (pass_always)
|
2014-07-07 14:56:11 +02:00
|
|
|
TEST_DECLARE (socket_buffer_size)
|
2012-08-08 18:28:16 +02:00
|
|
|
TEST_DECLARE (spawn_fails)
|
2015-03-17 10:01:53 -05:00
|
|
|
#ifndef _WIN32
|
|
|
|
TEST_DECLARE (spawn_fails_check_for_waitpid_cleanup)
|
|
|
|
#endif
|
2011-07-20 17:55:26 -07:00
|
|
|
TEST_DECLARE (spawn_exit_code)
|
2011-07-25 17:11:23 -07:00
|
|
|
TEST_DECLARE (spawn_stdout)
|
2011-07-29 18:30:07 -07:00
|
|
|
TEST_DECLARE (spawn_stdin)
|
2012-05-31 22:56:23 +04:00
|
|
|
TEST_DECLARE (spawn_stdio_greater_than_3)
|
2012-06-02 21:34:21 +02:00
|
|
|
TEST_DECLARE (spawn_ignored_stdio)
|
2011-07-29 18:30:07 -07:00
|
|
|
TEST_DECLARE (spawn_and_kill)
|
2012-05-31 17:19:27 -07:00
|
|
|
TEST_DECLARE (spawn_detached)
|
2011-11-23 07:35:45 -08:00
|
|
|
TEST_DECLARE (spawn_and_kill_with_std)
|
2011-10-11 21:00:56 +02:00
|
|
|
TEST_DECLARE (spawn_and_ping)
|
2012-11-01 10:55:06 -04:00
|
|
|
TEST_DECLARE (spawn_preserve_env)
|
2012-04-27 21:05:15 +02:00
|
|
|
TEST_DECLARE (spawn_setuid_fails)
|
|
|
|
TEST_DECLARE (spawn_setgid_fails)
|
2012-05-15 11:26:16 -07:00
|
|
|
TEST_DECLARE (spawn_stdout_to_file)
|
2014-01-20 19:30:08 +04:00
|
|
|
TEST_DECLARE (spawn_stdout_and_stderr_to_file)
|
2015-03-20 09:50:01 +01:00
|
|
|
TEST_DECLARE (spawn_stdout_and_stderr_to_file2)
|
2015-04-08 00:17:12 +02:00
|
|
|
TEST_DECLARE (spawn_stdout_and_stderr_to_file_swap)
|
2013-02-22 14:39:39 +01:00
|
|
|
TEST_DECLARE (spawn_auto_unref)
|
2014-03-23 12:48:06 +02:00
|
|
|
TEST_DECLARE (spawn_closed_process_io)
|
2014-06-24 15:39:01 -07:00
|
|
|
TEST_DECLARE (spawn_reads_child_path)
|
2015-06-19 16:30:24 +00:00
|
|
|
TEST_DECLARE (spawn_inherit_streams)
|
2012-06-14 07:30:08 +02:00
|
|
|
TEST_DECLARE (fs_poll)
|
2014-02-24 22:51:59 +01:00
|
|
|
TEST_DECLARE (fs_poll_getpath)
|
2011-11-02 14:05:22 -07:00
|
|
|
TEST_DECLARE (kill)
|
2011-09-06 00:16:41 +02:00
|
|
|
TEST_DECLARE (fs_file_noent)
|
2012-01-22 02:01:54 +01:00
|
|
|
TEST_DECLARE (fs_file_nametoolong)
|
2012-01-25 12:39:44 +01:00
|
|
|
TEST_DECLARE (fs_file_loop)
|
2011-08-19 16:46:42 -07:00
|
|
|
TEST_DECLARE (fs_file_async)
|
|
|
|
TEST_DECLARE (fs_file_sync)
|
2014-02-26 23:59:29 +01:00
|
|
|
TEST_DECLARE (fs_file_write_null_buffer)
|
2011-08-19 16:46:42 -07:00
|
|
|
TEST_DECLARE (fs_async_dir)
|
|
|
|
TEST_DECLARE (fs_async_sendfile)
|
2014-07-13 22:42:14 +03:00
|
|
|
TEST_DECLARE (fs_mkdtemp)
|
2011-09-01 14:15:01 -07:00
|
|
|
TEST_DECLARE (fs_fstat)
|
2014-10-02 22:16:21 -04:00
|
|
|
TEST_DECLARE (fs_access)
|
2011-09-01 15:36:01 -07:00
|
|
|
TEST_DECLARE (fs_chmod)
|
2015-04-21 19:44:30 +01:00
|
|
|
TEST_DECLARE (fs_unlink_readonly)
|
2011-09-03 11:06:08 -07:00
|
|
|
TEST_DECLARE (fs_chown)
|
2011-09-03 16:31:35 -07:00
|
|
|
TEST_DECLARE (fs_link)
|
2012-09-30 03:26:48 +02:00
|
|
|
TEST_DECLARE (fs_readlink)
|
2015-09-19 00:40:34 +03:00
|
|
|
TEST_DECLARE (fs_realpath)
|
2011-09-03 16:31:35 -07:00
|
|
|
TEST_DECLARE (fs_symlink)
|
2012-05-08 15:44:11 -07:00
|
|
|
TEST_DECLARE (fs_symlink_dir)
|
2011-09-06 02:52:23 +02:00
|
|
|
TEST_DECLARE (fs_utime)
|
|
|
|
TEST_DECLARE (fs_futime)
|
2011-11-04 12:41:23 -07:00
|
|
|
TEST_DECLARE (fs_file_open_append)
|
2011-09-28 12:46:37 -07:00
|
|
|
TEST_DECLARE (fs_stat_missing_path)
|
2012-02-28 17:27:18 -08:00
|
|
|
TEST_DECLARE (fs_read_file_eof)
|
2011-09-16 12:04:36 -07:00
|
|
|
TEST_DECLARE (fs_event_watch_dir)
|
2015-07-02 01:04:11 +02:00
|
|
|
TEST_DECLARE (fs_event_watch_dir_recursive)
|
2011-09-16 12:04:36 -07:00
|
|
|
TEST_DECLARE (fs_event_watch_file)
|
2016-06-22 13:14:04 -04:00
|
|
|
TEST_DECLARE (fs_event_watch_file_exact_path)
|
2012-07-28 14:40:01 +02:00
|
|
|
TEST_DECLARE (fs_event_watch_file_twice)
|
2011-09-16 12:04:36 -07:00
|
|
|
TEST_DECLARE (fs_event_watch_file_current_dir)
|
2016-01-14 19:21:47 +02:00
|
|
|
#ifdef _WIN32
|
|
|
|
TEST_DECLARE (fs_event_watch_file_root_dir)
|
|
|
|
#endif
|
2017-03-16 21:20:11 -04:00
|
|
|
TEST_DECLARE (fs_event_watch_invalid_path)
|
2012-12-12 19:47:58 -08:00
|
|
|
TEST_DECLARE (fs_event_no_callback_after_close)
|
2011-11-02 19:09:18 -07:00
|
|
|
TEST_DECLARE (fs_event_no_callback_on_close)
|
2011-09-27 15:04:45 +02:00
|
|
|
TEST_DECLARE (fs_event_immediate_close)
|
2012-03-27 22:56:34 +02:00
|
|
|
TEST_DECLARE (fs_event_close_with_pending_event)
|
2012-04-27 21:05:15 +02:00
|
|
|
TEST_DECLARE (fs_event_close_in_callback)
|
2013-10-02 14:47:14 +04:00
|
|
|
TEST_DECLARE (fs_event_start_and_close)
|
2013-11-01 23:00:58 +04:00
|
|
|
TEST_DECLARE (fs_event_error_reporting)
|
2014-02-24 00:51:13 +01:00
|
|
|
TEST_DECLARE (fs_event_getpath)
|
2014-09-25 10:09:58 +02:00
|
|
|
TEST_DECLARE (fs_scandir_empty_dir)
|
2017-01-05 15:16:48 -08:00
|
|
|
TEST_DECLARE (fs_scandir_non_existent_dir)
|
2014-09-25 10:09:58 +02:00
|
|
|
TEST_DECLARE (fs_scandir_file)
|
2011-10-12 10:36:14 -07:00
|
|
|
TEST_DECLARE (fs_open_dir)
|
2011-12-30 15:46:17 -08:00
|
|
|
TEST_DECLARE (fs_rename_to_existing_file)
|
2014-10-19 20:48:51 -07:00
|
|
|
TEST_DECLARE (fs_write_multiple_bufs)
|
2015-08-11 12:38:57 +02:00
|
|
|
TEST_DECLARE (fs_read_write_null_arguments)
|
2015-08-04 17:07:54 +09:00
|
|
|
TEST_DECLARE (fs_write_alotof_bufs)
|
|
|
|
TEST_DECLARE (fs_write_alotof_bufs_with_offset)
|
2011-08-19 16:46:42 -07:00
|
|
|
TEST_DECLARE (threadpool_queue_work_simple)
|
2012-11-24 08:25:32 +09:00
|
|
|
TEST_DECLARE (threadpool_queue_work_einval)
|
2011-12-22 03:42:54 +01:00
|
|
|
TEST_DECLARE (threadpool_multiple_event_loops)
|
2012-11-26 03:12:38 +01:00
|
|
|
TEST_DECLARE (threadpool_cancel_getaddrinfo)
|
2014-06-18 02:00:07 +02:00
|
|
|
TEST_DECLARE (threadpool_cancel_getnameinfo)
|
2012-11-26 03:12:38 +01:00
|
|
|
TEST_DECLARE (threadpool_cancel_work)
|
|
|
|
TEST_DECLARE (threadpool_cancel_fs)
|
2012-12-28 15:10:04 +01:00
|
|
|
TEST_DECLARE (threadpool_cancel_single)
|
2013-08-25 03:12:41 +02:00
|
|
|
TEST_DECLARE (thread_local_storage)
|
2016-01-04 12:32:22 +01:00
|
|
|
TEST_DECLARE (thread_stack_size)
|
2011-11-14 21:04:53 +01:00
|
|
|
TEST_DECLARE (thread_mutex)
|
|
|
|
TEST_DECLARE (thread_rwlock)
|
2015-09-13 16:58:40 +02:00
|
|
|
TEST_DECLARE (thread_rwlock_trylock)
|
2011-11-21 16:12:36 +01:00
|
|
|
TEST_DECLARE (thread_create)
|
2014-10-04 22:01:03 -07:00
|
|
|
TEST_DECLARE (thread_equal)
|
2012-02-25 01:32:31 +09:00
|
|
|
TEST_DECLARE (dlerror)
|
2012-04-25 00:26:21 +02:00
|
|
|
TEST_DECLARE (poll_duplex)
|
|
|
|
TEST_DECLARE (poll_unidirectional)
|
2012-06-01 18:30:17 +02:00
|
|
|
TEST_DECLARE (poll_close)
|
2015-12-20 02:29:11 +01:00
|
|
|
TEST_DECLARE (poll_bad_fdtype)
|
2016-05-23 20:03:30 +02:00
|
|
|
#ifdef __linux__
|
|
|
|
TEST_DECLARE (poll_nested_epoll)
|
|
|
|
#endif
|
|
|
|
#ifdef UV_HAVE_KQUEUE
|
|
|
|
TEST_DECLARE (poll_nested_kqueue)
|
|
|
|
#endif
|
2014-06-25 10:29:53 +02:00
|
|
|
|
2013-12-13 01:01:38 +08:00
|
|
|
TEST_DECLARE (ip4_addr)
|
2013-03-14 22:20:32 +01:00
|
|
|
TEST_DECLARE (ip6_addr_link_local)
|
2014-06-25 10:29:53 +02:00
|
|
|
|
2014-12-09 22:01:16 +01:00
|
|
|
TEST_DECLARE (poll_close_doesnt_corrupt_stack)
|
2014-05-12 16:48:52 +02:00
|
|
|
TEST_DECLARE (poll_closesocket)
|
2016-05-30 08:36:36 +00:00
|
|
|
#ifdef _WIN32
|
2011-08-01 20:10:55 -07:00
|
|
|
TEST_DECLARE (spawn_detect_pipe_name_collisions_on_windows)
|
2015-07-15 23:04:22 +02:00
|
|
|
#if !defined(USING_UV_SHARED)
|
2011-08-05 00:14:17 +01:00
|
|
|
TEST_DECLARE (argument_escaping)
|
2011-08-09 04:14:06 +01:00
|
|
|
TEST_DECLARE (environment_creation)
|
2015-07-15 23:04:22 +02:00
|
|
|
#endif
|
2011-11-01 01:13:13 -07:00
|
|
|
TEST_DECLARE (listen_with_simultaneous_accepts)
|
|
|
|
TEST_DECLARE (listen_no_simultaneous_accepts)
|
2012-01-27 18:15:10 +01:00
|
|
|
TEST_DECLARE (fs_stat_root)
|
2014-03-31 14:16:07 -07:00
|
|
|
TEST_DECLARE (spawn_with_an_odd_path)
|
2014-07-29 16:08:01 +02:00
|
|
|
TEST_DECLARE (ipc_listen_after_bind_twice)
|
2016-12-12 11:34:42 +01:00
|
|
|
TEST_DECLARE (win32_signum_number)
|
2012-04-27 21:05:15 +02:00
|
|
|
#else
|
2013-11-25 01:30:11 +01:00
|
|
|
TEST_DECLARE (emfile)
|
2013-11-08 05:15:55 +01:00
|
|
|
TEST_DECLARE (close_fd)
|
2014-02-05 13:35:37 +04:00
|
|
|
TEST_DECLARE (spawn_fs_open)
|
2012-04-27 21:05:15 +02:00
|
|
|
TEST_DECLARE (spawn_setuid_setgid)
|
2012-10-12 00:11:27 +02:00
|
|
|
TEST_DECLARE (we_get_signal)
|
|
|
|
TEST_DECLARE (we_get_signals)
|
2016-10-23 14:47:31 +02:00
|
|
|
TEST_DECLARE (we_get_signal_one_shot)
|
|
|
|
TEST_DECLARE (we_get_signals_mixed)
|
2012-10-16 17:42:30 +02:00
|
|
|
TEST_DECLARE (signal_multiple_loops)
|
2014-02-05 18:36:24 -05:00
|
|
|
TEST_DECLARE (closed_fd_events)
|
2011-08-01 20:10:55 -07:00
|
|
|
#endif
|
2013-04-26 23:43:28 +04:00
|
|
|
#ifdef __APPLE__
|
|
|
|
TEST_DECLARE (osx_select)
|
2014-09-07 23:56:15 +01:00
|
|
|
TEST_DECLARE (osx_select_many_fds)
|
2013-04-26 23:43:28 +04:00
|
|
|
#endif
|
2011-07-01 17:54:17 -07:00
|
|
|
HELPER_DECLARE (tcp4_echo_server)
|
|
|
|
HELPER_DECLARE (tcp6_echo_server)
|
2012-01-13 19:15:50 +01:00
|
|
|
HELPER_DECLARE (udp4_echo_server)
|
2011-07-01 17:54:17 -07:00
|
|
|
HELPER_DECLARE (pipe_echo_server)
|
2011-04-05 01:43:17 +02:00
|
|
|
|
2015-09-30 12:47:02 -04:00
|
|
|
TEST_DECLARE (queue_foreach_delete)
|
2011-06-25 12:35:49 +02:00
|
|
|
|
unix: make loops and watchers usable after fork()
Added the uv_loop_fork() API that must be called in a child process to
continue using an existing loop. Internally this calls a uv__io_fork
function for each supported platform, similar to the way
uv__platform_loop_init works.
After this call, existing and new IO, async and signal watchers will
contiue working as before on all platforms, as will the
threadpool (although any threads it was using are of course gone).
On Linux and BSDs that use kqueue, existing and new fsevent watchers
will also continue to work as expected. On OS X, though, directory
fsevents will not be able to use the optimized CoreFoundation path if
they had already been used in the parent process, instead falling back
to the kqueue path used on other BSDs.
Existing fsevent watchers will not function on AIX or SunOS. This
could be relatively easily fixed by someone with AIX knowledge in the
future, but SunOS will require some additional work to keep track if
the watchers.
A new test file, test/test-fork.c, was added to contain fork-related
tests to verify functionality in the child process.
PR-URL: https://github.com/libuv/libuv/pull/846
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2016-04-22 14:16:31 -05:00
|
|
|
#ifndef _WIN32
|
|
|
|
TEST_DECLARE (fork_timer)
|
|
|
|
TEST_DECLARE (fork_socketpair)
|
|
|
|
TEST_DECLARE (fork_socketpair_started)
|
|
|
|
TEST_DECLARE (fork_signal_to_child)
|
|
|
|
TEST_DECLARE (fork_signal_to_child_closed)
|
|
|
|
TEST_DECLARE (fork_fs_events_child)
|
|
|
|
TEST_DECLARE (fork_fs_events_child_dir)
|
|
|
|
TEST_DECLARE (fork_fs_events_file_parent_child)
|
|
|
|
TEST_DECLARE (fork_threadpool_queue_work_simple)
|
|
|
|
#endif
|
|
|
|
|
2011-04-19 04:26:32 +02:00
|
|
|
TASK_LIST_START
|
2014-01-31 10:57:30 -06:00
|
|
|
TEST_ENTRY_CUSTOM (platform_output, 0, 1, 5000)
|
2011-12-13 01:29:27 -08:00
|
|
|
|
2012-05-22 17:13:04 +02:00
|
|
|
#if 0
|
2012-05-22 16:04:09 +02:00
|
|
|
TEST_ENTRY (callback_order)
|
2012-05-22 17:13:04 +02:00
|
|
|
#endif
|
2013-05-29 09:51:04 +02:00
|
|
|
TEST_ENTRY (close_order)
|
2012-05-23 20:30:59 +02:00
|
|
|
TEST_ENTRY (run_once)
|
2012-12-18 16:10:11 +01:00
|
|
|
TEST_ENTRY (run_nowait)
|
2013-05-17 13:29:26 -07:00
|
|
|
TEST_ENTRY (loop_alive)
|
2014-02-17 22:37:20 +01:00
|
|
|
TEST_ENTRY (loop_close)
|
2013-01-16 09:36:20 +01:00
|
|
|
TEST_ENTRY (loop_stop)
|
2013-12-10 09:13:34 +01:00
|
|
|
TEST_ENTRY (loop_update_time)
|
2014-07-31 21:35:32 -04:00
|
|
|
TEST_ENTRY (loop_backend_timeout)
|
2014-12-25 14:11:55 +01:00
|
|
|
TEST_ENTRY (loop_configure)
|
2014-09-08 21:47:50 +02:00
|
|
|
TEST_ENTRY (default_loop_close)
|
2012-10-09 21:44:20 +09:00
|
|
|
TEST_ENTRY (barrier_1)
|
|
|
|
TEST_ENTRY (barrier_2)
|
|
|
|
TEST_ENTRY (barrier_3)
|
2012-10-05 13:03:03 +02:00
|
|
|
TEST_ENTRY (condvar_1)
|
|
|
|
TEST_ENTRY (condvar_2)
|
|
|
|
TEST_ENTRY (condvar_3)
|
|
|
|
TEST_ENTRY (condvar_4)
|
|
|
|
TEST_ENTRY (condvar_5)
|
2012-06-03 03:17:21 +02:00
|
|
|
TEST_ENTRY (semaphore_1)
|
|
|
|
TEST_ENTRY (semaphore_2)
|
|
|
|
TEST_ENTRY (semaphore_3)
|
2012-05-22 17:13:04 +02:00
|
|
|
|
2011-11-03 15:46:36 -07:00
|
|
|
TEST_ENTRY (pipe_connect_bad_name)
|
2012-03-01 12:11:12 -08:00
|
|
|
TEST_ENTRY (pipe_connect_to_file)
|
2015-05-08 09:33:47 +02:00
|
|
|
TEST_ENTRY (pipe_connect_on_prepare)
|
2011-11-03 15:46:36 -07:00
|
|
|
|
2013-12-20 19:40:02 -08:00
|
|
|
TEST_ENTRY (pipe_server_close)
|
2014-08-14 16:38:56 -07:00
|
|
|
#ifndef _WIN32
|
|
|
|
TEST_ENTRY (pipe_close_stdout_read_stdin)
|
|
|
|
#endif
|
2015-02-09 12:53:52 +01:00
|
|
|
TEST_ENTRY (pipe_set_non_blocking)
|
2011-09-15 15:16:53 -07:00
|
|
|
TEST_ENTRY (tty)
|
2016-05-11 13:03:30 +01:00
|
|
|
#ifdef _WIN32
|
|
|
|
TEST_ENTRY (tty_raw)
|
2016-11-16 16:16:54 +01:00
|
|
|
TEST_ENTRY (tty_empty_write)
|
2016-11-16 16:17:12 +01:00
|
|
|
TEST_ENTRY (tty_large_write)
|
2016-05-11 13:03:30 +01:00
|
|
|
#endif
|
2015-03-11 16:05:56 +01:00
|
|
|
TEST_ENTRY (tty_file)
|
2016-03-23 23:18:53 +01:00
|
|
|
TEST_ENTRY (tty_pty)
|
2011-10-19 00:48:38 -07:00
|
|
|
TEST_ENTRY (stdio_over_pipes)
|
2014-04-14 15:22:08 +04:00
|
|
|
TEST_ENTRY (ip6_pton)
|
2011-10-25 13:07:29 -07:00
|
|
|
TEST_ENTRY (ipc_listen_before_write)
|
|
|
|
TEST_ENTRY (ipc_listen_after_write)
|
2012-04-12 03:33:53 +02:00
|
|
|
#ifndef _WIN32
|
2012-03-09 03:16:08 +01:00
|
|
|
TEST_ENTRY (ipc_send_recv_pipe)
|
2015-10-28 11:40:51 -07:00
|
|
|
TEST_ENTRY (ipc_send_recv_pipe_inprocess)
|
2012-04-12 03:33:53 +02:00
|
|
|
#endif
|
2012-03-09 03:16:08 +01:00
|
|
|
TEST_ENTRY (ipc_send_recv_tcp)
|
2015-10-28 11:40:51 -07:00
|
|
|
TEST_ENTRY (ipc_send_recv_tcp_inprocess)
|
2012-03-08 12:02:50 -08:00
|
|
|
TEST_ENTRY (ipc_tcp_connection)
|
2011-09-26 22:51:08 -07:00
|
|
|
|
2016-08-16 00:15:54 +02:00
|
|
|
TEST_ENTRY (tcp_alloc_cb_fail)
|
|
|
|
|
2011-07-01 17:54:17 -07:00
|
|
|
TEST_ENTRY (tcp_ping_pong)
|
|
|
|
TEST_HELPER (tcp_ping_pong, tcp4_echo_server)
|
2011-04-05 01:43:17 +02:00
|
|
|
|
2011-07-01 17:54:17 -07:00
|
|
|
TEST_ENTRY (tcp_ping_pong_v6)
|
|
|
|
TEST_HELPER (tcp_ping_pong_v6, tcp6_echo_server)
|
|
|
|
|
|
|
|
TEST_ENTRY (pipe_ping_pong)
|
|
|
|
TEST_HELPER (pipe_ping_pong, pipe_echo_server)
|
2011-07-01 17:04:05 -07:00
|
|
|
|
2011-04-22 00:45:49 +02:00
|
|
|
TEST_ENTRY (delayed_accept)
|
2011-10-26 13:32:15 -07:00
|
|
|
TEST_ENTRY (multiple_listen)
|
2011-04-22 00:45:49 +02:00
|
|
|
|
2014-08-21 10:59:35 +02:00
|
|
|
#ifndef _WIN32
|
|
|
|
TEST_ENTRY (tcp_write_after_connect)
|
|
|
|
#endif
|
|
|
|
|
2011-04-22 05:12:10 +02:00
|
|
|
TEST_ENTRY (tcp_writealot)
|
2011-07-01 17:54:17 -07:00
|
|
|
TEST_HELPER (tcp_writealot, tcp4_echo_server)
|
2011-04-22 05:12:10 +02:00
|
|
|
|
2015-05-05 23:09:23 +02:00
|
|
|
TEST_ENTRY (tcp_write_fail)
|
|
|
|
TEST_HELPER (tcp_write_fail, tcp4_echo_server)
|
|
|
|
|
2013-12-06 19:10:47 +04:00
|
|
|
TEST_ENTRY (tcp_try_write)
|
|
|
|
|
2014-07-06 14:43:59 +02:00
|
|
|
TEST_ENTRY (tcp_write_queue_order)
|
|
|
|
|
2012-09-17 12:15:12 +02:00
|
|
|
TEST_ENTRY (tcp_open)
|
|
|
|
TEST_HELPER (tcp_open, tcp4_echo_server)
|
2015-06-18 00:41:44 +02:00
|
|
|
TEST_ENTRY (tcp_open_twice)
|
2012-09-17 12:15:12 +02:00
|
|
|
|
2012-06-04 23:18:32 +02:00
|
|
|
TEST_ENTRY (tcp_shutdown_after_write)
|
|
|
|
TEST_HELPER (tcp_shutdown_after_write, tcp4_echo_server)
|
|
|
|
|
2012-06-04 17:18:02 +02:00
|
|
|
TEST_ENTRY (tcp_connect_error_after_write)
|
2011-07-21 02:00:12 +02:00
|
|
|
TEST_ENTRY (tcp_bind_error_addrinuse)
|
|
|
|
TEST_ENTRY (tcp_bind_error_addrnotavail_1)
|
|
|
|
TEST_ENTRY (tcp_bind_error_addrnotavail_2)
|
|
|
|
TEST_ENTRY (tcp_bind_error_fault)
|
|
|
|
TEST_ENTRY (tcp_bind_error_inval)
|
|
|
|
TEST_ENTRY (tcp_bind_localhost_ok)
|
2014-04-22 22:45:58 +02:00
|
|
|
TEST_ENTRY (tcp_bind_invalid_flags)
|
2011-07-21 02:00:12 +02:00
|
|
|
TEST_ENTRY (tcp_listen_without_bind)
|
2012-05-17 11:44:05 +02:00
|
|
|
TEST_ENTRY (tcp_connect_error_fault)
|
2012-05-17 11:43:33 +02:00
|
|
|
TEST_ENTRY (tcp_connect_timeout)
|
2012-06-06 16:00:53 +02:00
|
|
|
TEST_ENTRY (tcp_close_while_connecting)
|
2011-09-09 23:53:09 +02:00
|
|
|
TEST_ENTRY (tcp_close)
|
2015-06-17 00:34:58 +02:00
|
|
|
TEST_ENTRY (tcp_create_early)
|
|
|
|
TEST_ENTRY (tcp_create_early_bad_bind)
|
|
|
|
TEST_ENTRY (tcp_create_early_bad_domain)
|
|
|
|
TEST_ENTRY (tcp_create_early_accept)
|
2014-08-05 00:14:26 +02:00
|
|
|
#ifndef _WIN32
|
2013-10-25 12:56:37 +04:00
|
|
|
TEST_ENTRY (tcp_close_accept)
|
2015-02-24 16:16:22 +03:00
|
|
|
TEST_ENTRY (tcp_oob)
|
2014-08-05 00:14:26 +02:00
|
|
|
#endif
|
2011-10-21 15:37:47 -07:00
|
|
|
TEST_ENTRY (tcp_flags)
|
2011-11-07 15:48:33 -08:00
|
|
|
TEST_ENTRY (tcp_write_to_half_open_connection)
|
2012-06-30 02:59:29 +02:00
|
|
|
TEST_ENTRY (tcp_unexpected_read)
|
2011-07-21 02:00:12 +02:00
|
|
|
|
2012-12-13 16:37:12 +01:00
|
|
|
TEST_ENTRY (tcp_read_stop)
|
|
|
|
TEST_HELPER (tcp_read_stop, tcp4_echo_server)
|
|
|
|
|
2011-07-21 02:00:12 +02:00
|
|
|
TEST_ENTRY (tcp_bind6_error_addrinuse)
|
|
|
|
TEST_ENTRY (tcp_bind6_error_addrnotavail)
|
|
|
|
TEST_ENTRY (tcp_bind6_error_fault)
|
|
|
|
TEST_ENTRY (tcp_bind6_error_inval)
|
|
|
|
TEST_ENTRY (tcp_bind6_localhost_ok)
|
|
|
|
|
2016-08-16 00:15:54 +02:00
|
|
|
TEST_ENTRY (udp_alloc_cb_fail)
|
2014-03-31 09:56:37 +02:00
|
|
|
TEST_ENTRY (udp_bind)
|
|
|
|
TEST_ENTRY (udp_bind_reuseaddr)
|
2015-06-17 00:34:58 +02:00
|
|
|
TEST_ENTRY (udp_create_early)
|
|
|
|
TEST_ENTRY (udp_create_early_bad_bind)
|
|
|
|
TEST_ENTRY (udp_create_early_bad_domain)
|
2011-08-19 23:22:30 +02:00
|
|
|
TEST_ENTRY (udp_send_and_recv)
|
2017-04-18 17:59:32 -06:00
|
|
|
TEST_ENTRY (udp_send_hang_loop)
|
2014-07-11 22:42:55 +02:00
|
|
|
TEST_ENTRY (udp_send_immediate)
|
2014-08-27 21:50:48 +02:00
|
|
|
TEST_ENTRY (udp_send_unreachable)
|
2011-08-19 23:22:30 +02:00
|
|
|
TEST_ENTRY (udp_dgram_too_big)
|
|
|
|
TEST_ENTRY (udp_dual_stack)
|
|
|
|
TEST_ENTRY (udp_ipv6_only)
|
2012-01-28 02:16:00 +01:00
|
|
|
TEST_ENTRY (udp_options)
|
2015-01-01 13:15:57 +01:00
|
|
|
TEST_ENTRY (udp_options6)
|
2014-05-07 11:12:19 +02:00
|
|
|
TEST_ENTRY (udp_no_autobind)
|
2014-03-28 00:39:09 +01:00
|
|
|
TEST_ENTRY (udp_multicast_interface)
|
|
|
|
TEST_ENTRY (udp_multicast_interface6)
|
2011-09-29 19:29:15 -04:00
|
|
|
TEST_ENTRY (udp_multicast_join)
|
2014-03-17 10:06:25 +01:00
|
|
|
TEST_ENTRY (udp_multicast_join6)
|
2012-01-19 11:07:28 -05:00
|
|
|
TEST_ENTRY (udp_multicast_ttl)
|
2014-06-30 00:01:10 +02:00
|
|
|
TEST_ENTRY (udp_try_send)
|
2011-08-19 23:22:30 +02:00
|
|
|
|
2012-09-17 12:15:12 +02:00
|
|
|
TEST_ENTRY (udp_open)
|
|
|
|
TEST_HELPER (udp_open, udp4_echo_server)
|
2015-06-18 00:41:44 +02:00
|
|
|
TEST_ENTRY (udp_open_twice)
|
2012-09-17 12:15:12 +02:00
|
|
|
|
2011-07-21 02:00:12 +02:00
|
|
|
TEST_ENTRY (pipe_bind_error_addrinuse)
|
|
|
|
TEST_ENTRY (pipe_bind_error_addrnotavail)
|
|
|
|
TEST_ENTRY (pipe_bind_error_inval)
|
2015-08-20 10:49:21 +02:00
|
|
|
TEST_ENTRY (pipe_connect_multiple)
|
2011-07-21 02:00:12 +02:00
|
|
|
TEST_ENTRY (pipe_listen_without_bind)
|
2013-12-17 00:15:54 +01:00
|
|
|
TEST_ENTRY (pipe_getsockname)
|
|
|
|
TEST_ENTRY (pipe_getsockname_abstract)
|
2014-07-15 01:49:11 -04:00
|
|
|
TEST_ENTRY (pipe_getsockname_blocking)
|
2015-08-20 10:53:20 +02:00
|
|
|
TEST_ENTRY (pipe_pending_instances)
|
2013-12-22 14:45:00 +04:00
|
|
|
TEST_ENTRY (pipe_sendmsg)
|
2011-06-26 22:34:04 -06:00
|
|
|
|
2011-04-22 00:45:49 +02:00
|
|
|
TEST_ENTRY (connection_fail)
|
2011-06-02 09:19:56 +02:00
|
|
|
TEST_ENTRY (connection_fail_doesnt_auto_close)
|
2011-04-22 00:45:49 +02:00
|
|
|
|
2012-03-09 04:29:45 +01:00
|
|
|
TEST_ENTRY (shutdown_close_tcp)
|
|
|
|
TEST_HELPER (shutdown_close_tcp, tcp4_echo_server)
|
|
|
|
TEST_ENTRY (shutdown_close_pipe)
|
|
|
|
TEST_HELPER (shutdown_close_pipe, pipe_echo_server)
|
|
|
|
|
2011-06-02 11:31:42 +02:00
|
|
|
TEST_ENTRY (shutdown_eof)
|
2011-07-01 17:54:17 -07:00
|
|
|
TEST_HELPER (shutdown_eof, tcp4_echo_server)
|
2011-06-02 11:31:42 +02:00
|
|
|
|
2014-02-14 22:27:45 -05:00
|
|
|
TEST_ENTRY (shutdown_twice)
|
|
|
|
TEST_HELPER (shutdown_twice, tcp4_echo_server)
|
|
|
|
|
2011-05-04 17:10:33 +02:00
|
|
|
TEST_ENTRY (callback_stack)
|
2011-07-01 17:54:17 -07:00
|
|
|
TEST_HELPER (callback_stack, tcp4_echo_server)
|
2011-04-05 04:24:03 +02:00
|
|
|
|
2017-02-28 00:21:26 -05:00
|
|
|
TEST_ENTRY (env_vars)
|
|
|
|
|
2011-10-06 01:00:56 +02:00
|
|
|
TEST_ENTRY (error_message)
|
2016-09-18 15:18:48 -04:00
|
|
|
TEST_ENTRY (sys_error)
|
2011-10-06 01:00:56 +02:00
|
|
|
|
2011-05-17 01:17:48 +02:00
|
|
|
TEST_ENTRY (timer)
|
2013-03-04 22:17:50 -06:00
|
|
|
TEST_ENTRY (timer_init)
|
2011-05-19 01:58:07 +02:00
|
|
|
TEST_ENTRY (timer_again)
|
2012-05-26 02:09:35 +02:00
|
|
|
TEST_ENTRY (timer_start_twice)
|
2013-02-07 13:59:17 +09:00
|
|
|
TEST_ENTRY (timer_order)
|
2013-03-21 14:47:38 +01:00
|
|
|
TEST_ENTRY (timer_huge_timeout)
|
|
|
|
TEST_ENTRY (timer_huge_repeat)
|
2013-05-25 10:37:08 +02:00
|
|
|
TEST_ENTRY (timer_run_once)
|
2013-06-26 13:02:39 +02:00
|
|
|
TEST_ENTRY (timer_from_check)
|
2014-09-04 14:17:59 +02:00
|
|
|
TEST_ENTRY (timer_null_callback)
|
2015-06-02 20:02:55 +01:00
|
|
|
TEST_ENTRY (timer_early_check)
|
2011-05-19 01:58:07 +02:00
|
|
|
|
2011-07-21 02:51:26 +02:00
|
|
|
TEST_ENTRY (idle_starvation)
|
|
|
|
|
2011-05-20 08:22:19 -07:00
|
|
|
TEST_ENTRY (ref)
|
|
|
|
TEST_ENTRY (idle_ref)
|
2012-06-14 07:30:08 +02:00
|
|
|
TEST_ENTRY (fs_poll_ref)
|
2011-05-20 08:22:19 -07:00
|
|
|
TEST_ENTRY (async_ref)
|
|
|
|
TEST_ENTRY (prepare_ref)
|
|
|
|
TEST_ENTRY (check_ref)
|
2011-07-21 14:53:40 +02:00
|
|
|
TEST_ENTRY (unref_in_prepare_cb)
|
2012-01-14 00:11:27 +01:00
|
|
|
TEST_ENTRY (timer_ref)
|
|
|
|
TEST_ENTRY (timer_ref2)
|
|
|
|
TEST_ENTRY (fs_event_ref)
|
|
|
|
TEST_ENTRY (tcp_ref)
|
|
|
|
TEST_ENTRY (tcp_ref2)
|
2012-10-25 15:10:16 +02:00
|
|
|
TEST_ENTRY (tcp_ref2b)
|
2012-01-14 00:11:27 +01:00
|
|
|
TEST_ENTRY (tcp_ref3)
|
|
|
|
TEST_HELPER (tcp_ref3, tcp4_echo_server)
|
2012-03-09 04:26:51 +01:00
|
|
|
TEST_ENTRY (tcp_ref4)
|
|
|
|
TEST_HELPER (tcp_ref4, tcp4_echo_server)
|
2012-01-14 00:11:27 +01:00
|
|
|
TEST_ENTRY (udp_ref)
|
|
|
|
TEST_ENTRY (udp_ref2)
|
|
|
|
TEST_ENTRY (udp_ref3)
|
|
|
|
TEST_HELPER (udp_ref3, udp4_echo_server)
|
|
|
|
TEST_ENTRY (pipe_ref)
|
|
|
|
TEST_ENTRY (pipe_ref2)
|
|
|
|
TEST_ENTRY (pipe_ref3)
|
|
|
|
TEST_HELPER (pipe_ref3, pipe_echo_server)
|
2012-03-09 04:26:51 +01:00
|
|
|
TEST_ENTRY (pipe_ref4)
|
|
|
|
TEST_HELPER (pipe_ref4, pipe_echo_server)
|
2012-01-14 00:11:27 +01:00
|
|
|
TEST_ENTRY (process_ref)
|
2013-04-17 00:16:42 +02:00
|
|
|
TEST_ENTRY (has_ref)
|
2011-05-20 08:22:19 -07:00
|
|
|
|
2011-05-08 04:44:55 +02:00
|
|
|
TEST_ENTRY (loop_handles)
|
2012-05-30 01:51:28 +02:00
|
|
|
TEST_ENTRY (walk_handles)
|
2011-05-08 04:44:55 +02:00
|
|
|
|
2013-10-30 21:43:23 +04:00
|
|
|
TEST_ENTRY (watcher_cross_stop)
|
|
|
|
|
2012-08-27 23:57:48 +02:00
|
|
|
TEST_ENTRY (active)
|
|
|
|
|
2012-11-26 14:20:11 +04:00
|
|
|
TEST_ENTRY (embed)
|
|
|
|
|
2011-05-09 04:29:22 +02:00
|
|
|
TEST_ENTRY (async)
|
2013-08-12 08:42:49 +02:00
|
|
|
TEST_ENTRY (async_null_cb)
|
2015-12-19 22:21:07 -08:00
|
|
|
TEST_ENTRY (eintr_handling)
|
2011-05-09 04:29:22 +02:00
|
|
|
|
2011-05-20 18:05:37 -07:00
|
|
|
TEST_ENTRY (get_currentexe)
|
|
|
|
|
2011-12-13 01:29:27 -08:00
|
|
|
TEST_ENTRY (process_title)
|
|
|
|
|
2011-11-30 15:31:39 -08:00
|
|
|
TEST_ENTRY (cwd_and_chdir)
|
|
|
|
|
2011-10-01 15:45:42 +07:00
|
|
|
TEST_ENTRY (get_memory)
|
|
|
|
|
2016-03-01 15:41:01 -05:00
|
|
|
TEST_ENTRY (get_passwd)
|
|
|
|
|
2011-10-02 00:48:42 +07:00
|
|
|
TEST_ENTRY (get_loadavg)
|
|
|
|
|
2014-08-22 09:57:43 +02:00
|
|
|
TEST_ENTRY (handle_fileno)
|
|
|
|
|
2015-05-12 09:17:19 -04:00
|
|
|
TEST_ENTRY (homedir)
|
|
|
|
|
2016-01-04 16:52:44 -05:00
|
|
|
TEST_ENTRY (tmpdir)
|
|
|
|
|
2011-06-17 11:47:35 +02:00
|
|
|
TEST_ENTRY (hrtime)
|
2011-06-25 15:33:52 +02:00
|
|
|
|
2014-02-01 00:50:23 +04:00
|
|
|
TEST_ENTRY_CUSTOM (getaddrinfo_fail, 0, 0, 10000)
|
2015-01-20 09:43:57 +01:00
|
|
|
TEST_ENTRY (getaddrinfo_fail_sync)
|
2014-02-01 00:50:23 +04:00
|
|
|
|
2011-06-25 15:33:52 +02:00
|
|
|
TEST_ENTRY (getaddrinfo_basic)
|
2015-01-20 09:43:57 +01:00
|
|
|
TEST_ENTRY (getaddrinfo_basic_sync)
|
2011-06-25 15:33:52 +02:00
|
|
|
TEST_ENTRY (getaddrinfo_concurrent)
|
2011-06-17 11:47:35 +02:00
|
|
|
|
2014-05-11 12:51:08 +02:00
|
|
|
TEST_ENTRY (getnameinfo_basic_ip4)
|
2015-01-20 09:43:57 +01:00
|
|
|
TEST_ENTRY (getnameinfo_basic_ip4_sync)
|
2014-05-11 12:51:08 +02:00
|
|
|
TEST_ENTRY (getnameinfo_basic_ip6)
|
|
|
|
|
2011-08-25 02:30:10 +02:00
|
|
|
TEST_ENTRY (getsockname_tcp)
|
|
|
|
TEST_ENTRY (getsockname_udp)
|
2011-07-11 13:45:16 -07:00
|
|
|
|
2012-04-25 00:26:21 +02:00
|
|
|
TEST_ENTRY (poll_duplex)
|
|
|
|
TEST_ENTRY (poll_unidirectional)
|
2012-06-01 18:30:17 +02:00
|
|
|
TEST_ENTRY (poll_close)
|
2015-12-20 02:29:11 +01:00
|
|
|
TEST_ENTRY (poll_bad_fdtype)
|
2016-05-23 20:03:30 +02:00
|
|
|
#ifdef __linux__
|
|
|
|
TEST_ENTRY (poll_nested_epoll)
|
|
|
|
#endif
|
|
|
|
#ifdef UV_HAVE_KQUEUE
|
|
|
|
TEST_ENTRY (poll_nested_kqueue)
|
|
|
|
#endif
|
2012-04-25 00:26:21 +02:00
|
|
|
|
2014-07-07 14:56:11 +02:00
|
|
|
TEST_ENTRY (socket_buffer_size)
|
|
|
|
|
2012-08-08 18:28:16 +02:00
|
|
|
TEST_ENTRY (spawn_fails)
|
2015-03-17 10:01:53 -05:00
|
|
|
#ifndef _WIN32
|
|
|
|
TEST_ENTRY (spawn_fails_check_for_waitpid_cleanup)
|
|
|
|
#endif
|
2011-07-20 17:55:26 -07:00
|
|
|
TEST_ENTRY (spawn_exit_code)
|
2011-07-25 17:11:23 -07:00
|
|
|
TEST_ENTRY (spawn_stdout)
|
2011-07-29 18:30:07 -07:00
|
|
|
TEST_ENTRY (spawn_stdin)
|
2012-05-31 22:56:23 +04:00
|
|
|
TEST_ENTRY (spawn_stdio_greater_than_3)
|
2012-06-02 21:34:21 +02:00
|
|
|
TEST_ENTRY (spawn_ignored_stdio)
|
2011-07-29 18:30:07 -07:00
|
|
|
TEST_ENTRY (spawn_and_kill)
|
2012-05-31 17:19:27 -07:00
|
|
|
TEST_ENTRY (spawn_detached)
|
2011-11-23 07:35:45 -08:00
|
|
|
TEST_ENTRY (spawn_and_kill_with_std)
|
2011-10-11 21:00:56 +02:00
|
|
|
TEST_ENTRY (spawn_and_ping)
|
2012-11-01 10:55:06 -04:00
|
|
|
TEST_ENTRY (spawn_preserve_env)
|
2012-04-27 21:05:15 +02:00
|
|
|
TEST_ENTRY (spawn_setuid_fails)
|
|
|
|
TEST_ENTRY (spawn_setgid_fails)
|
2012-05-15 11:26:16 -07:00
|
|
|
TEST_ENTRY (spawn_stdout_to_file)
|
2014-01-20 19:30:08 +04:00
|
|
|
TEST_ENTRY (spawn_stdout_and_stderr_to_file)
|
2015-03-20 09:50:01 +01:00
|
|
|
TEST_ENTRY (spawn_stdout_and_stderr_to_file2)
|
2015-04-08 00:17:12 +02:00
|
|
|
TEST_ENTRY (spawn_stdout_and_stderr_to_file_swap)
|
2013-02-22 14:39:39 +01:00
|
|
|
TEST_ENTRY (spawn_auto_unref)
|
2014-03-23 12:48:06 +02:00
|
|
|
TEST_ENTRY (spawn_closed_process_io)
|
2014-06-24 15:39:01 -07:00
|
|
|
TEST_ENTRY (spawn_reads_child_path)
|
2015-06-19 16:30:24 +00:00
|
|
|
TEST_ENTRY (spawn_inherit_streams)
|
2012-06-14 07:30:08 +02:00
|
|
|
TEST_ENTRY (fs_poll)
|
2014-02-24 22:51:59 +01:00
|
|
|
TEST_ENTRY (fs_poll_getpath)
|
2011-11-02 14:05:22 -07:00
|
|
|
TEST_ENTRY (kill)
|
2012-07-10 02:13:49 +02:00
|
|
|
|
2014-12-09 22:01:16 +01:00
|
|
|
TEST_ENTRY (poll_close_doesnt_corrupt_stack)
|
2014-05-12 16:48:52 +02:00
|
|
|
TEST_ENTRY (poll_closesocket)
|
2016-05-30 08:36:36 +00:00
|
|
|
#ifdef _WIN32
|
2011-08-01 20:10:55 -07:00
|
|
|
TEST_ENTRY (spawn_detect_pipe_name_collisions_on_windows)
|
2015-07-15 23:04:22 +02:00
|
|
|
#if !defined(USING_UV_SHARED)
|
2011-08-05 00:14:17 +01:00
|
|
|
TEST_ENTRY (argument_escaping)
|
2011-08-09 04:14:06 +01:00
|
|
|
TEST_ENTRY (environment_creation)
|
2015-07-15 23:04:22 +02:00
|
|
|
# endif
|
2011-11-01 01:13:13 -07:00
|
|
|
TEST_ENTRY (listen_with_simultaneous_accepts)
|
|
|
|
TEST_ENTRY (listen_no_simultaneous_accepts)
|
2012-01-27 18:15:10 +01:00
|
|
|
TEST_ENTRY (fs_stat_root)
|
2014-03-31 14:16:07 -07:00
|
|
|
TEST_ENTRY (spawn_with_an_odd_path)
|
2014-07-29 16:08:01 +02:00
|
|
|
TEST_ENTRY (ipc_listen_after_bind_twice)
|
2016-12-12 11:34:42 +01:00
|
|
|
TEST_ENTRY (win32_signum_number)
|
2012-04-27 21:05:15 +02:00
|
|
|
#else
|
2013-11-25 01:30:11 +01:00
|
|
|
TEST_ENTRY (emfile)
|
2013-11-08 05:15:55 +01:00
|
|
|
TEST_ENTRY (close_fd)
|
2014-02-05 13:35:37 +04:00
|
|
|
TEST_ENTRY (spawn_fs_open)
|
2012-04-27 21:05:15 +02:00
|
|
|
TEST_ENTRY (spawn_setuid_setgid)
|
2012-10-12 00:11:27 +02:00
|
|
|
TEST_ENTRY (we_get_signal)
|
|
|
|
TEST_ENTRY (we_get_signals)
|
2016-10-23 14:47:31 +02:00
|
|
|
TEST_ENTRY (we_get_signal_one_shot)
|
|
|
|
TEST_ENTRY (we_get_signals_mixed)
|
2012-10-16 17:42:30 +02:00
|
|
|
TEST_ENTRY (signal_multiple_loops)
|
2014-02-05 18:36:24 -05:00
|
|
|
TEST_ENTRY (closed_fd_events)
|
2011-08-01 20:10:55 -07:00
|
|
|
#endif
|
2011-07-20 17:55:26 -07:00
|
|
|
|
2013-04-26 23:43:28 +04:00
|
|
|
#ifdef __APPLE__
|
|
|
|
TEST_ENTRY (osx_select)
|
2014-09-07 23:56:15 +01:00
|
|
|
TEST_ENTRY (osx_select_many_fds)
|
2013-04-26 23:43:28 +04:00
|
|
|
#endif
|
|
|
|
|
2011-09-06 00:16:41 +02:00
|
|
|
TEST_ENTRY (fs_file_noent)
|
2012-01-22 02:01:54 +01:00
|
|
|
TEST_ENTRY (fs_file_nametoolong)
|
2012-01-25 12:39:44 +01:00
|
|
|
TEST_ENTRY (fs_file_loop)
|
2011-08-19 16:46:42 -07:00
|
|
|
TEST_ENTRY (fs_file_async)
|
|
|
|
TEST_ENTRY (fs_file_sync)
|
2014-02-26 23:59:29 +01:00
|
|
|
TEST_ENTRY (fs_file_write_null_buffer)
|
2011-08-19 16:46:42 -07:00
|
|
|
TEST_ENTRY (fs_async_dir)
|
|
|
|
TEST_ENTRY (fs_async_sendfile)
|
2014-07-13 22:42:14 +03:00
|
|
|
TEST_ENTRY (fs_mkdtemp)
|
2011-09-01 14:15:01 -07:00
|
|
|
TEST_ENTRY (fs_fstat)
|
2014-10-02 22:16:21 -04:00
|
|
|
TEST_ENTRY (fs_access)
|
2011-09-01 15:36:01 -07:00
|
|
|
TEST_ENTRY (fs_chmod)
|
2015-04-21 19:44:30 +01:00
|
|
|
TEST_ENTRY (fs_unlink_readonly)
|
2011-09-03 11:06:08 -07:00
|
|
|
TEST_ENTRY (fs_chown)
|
2011-09-06 02:52:23 +02:00
|
|
|
TEST_ENTRY (fs_utime)
|
|
|
|
TEST_ENTRY (fs_futime)
|
2012-09-30 03:26:48 +02:00
|
|
|
TEST_ENTRY (fs_readlink)
|
2015-09-19 00:40:34 +03:00
|
|
|
TEST_ENTRY (fs_realpath)
|
2011-09-06 02:52:23 +02:00
|
|
|
TEST_ENTRY (fs_symlink)
|
2012-05-08 15:44:11 -07:00
|
|
|
TEST_ENTRY (fs_symlink_dir)
|
2011-09-28 12:46:37 -07:00
|
|
|
TEST_ENTRY (fs_stat_missing_path)
|
2012-02-28 17:27:18 -08:00
|
|
|
TEST_ENTRY (fs_read_file_eof)
|
2011-11-04 12:41:23 -07:00
|
|
|
TEST_ENTRY (fs_file_open_append)
|
2011-09-16 12:04:36 -07:00
|
|
|
TEST_ENTRY (fs_event_watch_dir)
|
2015-07-02 01:04:11 +02:00
|
|
|
TEST_ENTRY (fs_event_watch_dir_recursive)
|
2011-09-16 12:04:36 -07:00
|
|
|
TEST_ENTRY (fs_event_watch_file)
|
2016-06-22 13:14:04 -04:00
|
|
|
TEST_ENTRY (fs_event_watch_file_exact_path)
|
2012-07-28 14:40:01 +02:00
|
|
|
TEST_ENTRY (fs_event_watch_file_twice)
|
2011-09-16 12:04:36 -07:00
|
|
|
TEST_ENTRY (fs_event_watch_file_current_dir)
|
2016-01-14 19:21:47 +02:00
|
|
|
#ifdef _WIN32
|
|
|
|
TEST_ENTRY (fs_event_watch_file_root_dir)
|
|
|
|
#endif
|
2017-03-16 21:20:11 -04:00
|
|
|
TEST_ENTRY (fs_event_watch_invalid_path)
|
2012-12-12 19:47:58 -08:00
|
|
|
TEST_ENTRY (fs_event_no_callback_after_close)
|
2011-11-02 19:09:18 -07:00
|
|
|
TEST_ENTRY (fs_event_no_callback_on_close)
|
2011-09-27 15:04:45 +02:00
|
|
|
TEST_ENTRY (fs_event_immediate_close)
|
2012-03-27 22:56:34 +02:00
|
|
|
TEST_ENTRY (fs_event_close_with_pending_event)
|
2012-03-27 22:52:53 +02:00
|
|
|
TEST_ENTRY (fs_event_close_in_callback)
|
2013-10-02 14:47:14 +04:00
|
|
|
TEST_ENTRY (fs_event_start_and_close)
|
2013-11-01 23:00:58 +04:00
|
|
|
TEST_ENTRY (fs_event_error_reporting)
|
2014-02-24 00:51:13 +01:00
|
|
|
TEST_ENTRY (fs_event_getpath)
|
2014-09-25 10:09:58 +02:00
|
|
|
TEST_ENTRY (fs_scandir_empty_dir)
|
2017-01-05 15:16:48 -08:00
|
|
|
TEST_ENTRY (fs_scandir_non_existent_dir)
|
2014-09-25 10:09:58 +02:00
|
|
|
TEST_ENTRY (fs_scandir_file)
|
2011-10-12 10:36:14 -07:00
|
|
|
TEST_ENTRY (fs_open_dir)
|
2011-12-30 15:46:17 -08:00
|
|
|
TEST_ENTRY (fs_rename_to_existing_file)
|
2014-10-19 20:48:51 -07:00
|
|
|
TEST_ENTRY (fs_write_multiple_bufs)
|
2015-08-04 17:07:54 +09:00
|
|
|
TEST_ENTRY (fs_write_alotof_bufs)
|
|
|
|
TEST_ENTRY (fs_write_alotof_bufs_with_offset)
|
2015-08-11 12:38:57 +02:00
|
|
|
TEST_ENTRY (fs_read_write_null_arguments)
|
2011-08-19 16:46:42 -07:00
|
|
|
TEST_ENTRY (threadpool_queue_work_simple)
|
2012-11-24 08:25:32 +09:00
|
|
|
TEST_ENTRY (threadpool_queue_work_einval)
|
2016-02-25 11:51:31 -05:00
|
|
|
#if defined(__PPC__) || defined(__PPC64__) /* For linux PPC and AIX */
|
|
|
|
/* pthread_join takes a while, especially on AIX.
|
|
|
|
* Therefore being gratuitous with timeout.
|
|
|
|
*/
|
|
|
|
TEST_ENTRY_CUSTOM (threadpool_multiple_event_loops, 0, 0, 120000)
|
|
|
|
#else
|
2011-12-22 03:42:54 +01:00
|
|
|
TEST_ENTRY (threadpool_multiple_event_loops)
|
2016-02-25 11:51:31 -05:00
|
|
|
#endif
|
2012-11-26 03:12:38 +01:00
|
|
|
TEST_ENTRY (threadpool_cancel_getaddrinfo)
|
2014-06-18 02:00:07 +02:00
|
|
|
TEST_ENTRY (threadpool_cancel_getnameinfo)
|
2012-11-26 03:12:38 +01:00
|
|
|
TEST_ENTRY (threadpool_cancel_work)
|
|
|
|
TEST_ENTRY (threadpool_cancel_fs)
|
2012-12-28 15:10:04 +01:00
|
|
|
TEST_ENTRY (threadpool_cancel_single)
|
2013-08-25 03:12:41 +02:00
|
|
|
TEST_ENTRY (thread_local_storage)
|
2016-01-04 12:32:22 +01:00
|
|
|
TEST_ENTRY (thread_stack_size)
|
2011-11-14 21:04:53 +01:00
|
|
|
TEST_ENTRY (thread_mutex)
|
|
|
|
TEST_ENTRY (thread_rwlock)
|
2015-09-13 16:58:40 +02:00
|
|
|
TEST_ENTRY (thread_rwlock_trylock)
|
2011-11-21 16:12:36 +01:00
|
|
|
TEST_ENTRY (thread_create)
|
2014-10-04 22:01:03 -07:00
|
|
|
TEST_ENTRY (thread_equal)
|
2012-02-25 01:32:31 +09:00
|
|
|
TEST_ENTRY (dlerror)
|
2013-12-13 01:01:38 +08:00
|
|
|
TEST_ENTRY (ip4_addr)
|
2013-03-14 22:20:32 +01:00
|
|
|
TEST_ENTRY (ip6_addr_link_local)
|
2015-09-30 12:47:02 -04:00
|
|
|
|
|
|
|
TEST_ENTRY (queue_foreach_delete)
|
|
|
|
|
unix: make loops and watchers usable after fork()
Added the uv_loop_fork() API that must be called in a child process to
continue using an existing loop. Internally this calls a uv__io_fork
function for each supported platform, similar to the way
uv__platform_loop_init works.
After this call, existing and new IO, async and signal watchers will
contiue working as before on all platforms, as will the
threadpool (although any threads it was using are of course gone).
On Linux and BSDs that use kqueue, existing and new fsevent watchers
will also continue to work as expected. On OS X, though, directory
fsevents will not be able to use the optimized CoreFoundation path if
they had already been used in the parent process, instead falling back
to the kqueue path used on other BSDs.
Existing fsevent watchers will not function on AIX or SunOS. This
could be relatively easily fixed by someone with AIX knowledge in the
future, but SunOS will require some additional work to keep track if
the watchers.
A new test file, test/test-fork.c, was added to contain fork-related
tests to verify functionality in the child process.
PR-URL: https://github.com/libuv/libuv/pull/846
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
2016-04-22 14:16:31 -05:00
|
|
|
#ifndef _WIN32
|
|
|
|
TEST_ENTRY (fork_timer)
|
|
|
|
TEST_ENTRY (fork_socketpair)
|
|
|
|
TEST_ENTRY (fork_socketpair_started)
|
|
|
|
TEST_ENTRY (fork_signal_to_child)
|
|
|
|
TEST_ENTRY (fork_signal_to_child_closed)
|
|
|
|
TEST_ENTRY (fork_fs_events_child)
|
|
|
|
TEST_ENTRY (fork_fs_events_child_dir)
|
|
|
|
TEST_ENTRY (fork_fs_events_file_parent_child)
|
|
|
|
TEST_ENTRY (fork_threadpool_queue_work_simple)
|
|
|
|
#endif
|
|
|
|
|
2011-05-03 16:56:26 -07:00
|
|
|
#if 0
|
|
|
|
/* These are for testing the test runner. */
|
2011-04-05 01:43:17 +02:00
|
|
|
TEST_ENTRY (fail_always)
|
|
|
|
TEST_ENTRY (pass_always)
|
2011-05-03 16:56:26 -07:00
|
|
|
#endif
|
2011-04-19 04:26:32 +02:00
|
|
|
TASK_LIST_END
|