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