libuv/test
Spencer Russell 16910d23a3 win,async: queue the async wakeup req only once
The refactoring in #980 changed to having only one instance of the async
req (like on Unix), so like on Unix, we also need to drain the queue of
all pending messages when we make the callback pending.

Fixes: https://github.com/libuv/libuv/pull/1951
PR-URL: https://github.com/libuv/libuv/pull/1960
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
Reviewed-By: Jameson Nash <vtjnash@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Saúl Ibarra Corretgé <saghul@gmail.com>
Reviewed-By: Santiago Gimeno <santiago.gimeno@gmail.com>
2020-01-31 13:51:47 -08:00
..
fixtures unix: make uv_fs_read() fill all buffers 2019-06-20 12:06:31 +02:00
benchmark-async-pummel.c src,lib: fix comments 2018-05-22 16:34:33 -04:00
benchmark-async.c
benchmark-fs-stat.c unix,windows: allow NULL loop for sync fs requests 2015-08-18 15:39:21 +02:00
benchmark-getaddrinfo.c test: remove LOG and LOGF variadic macros 2015-04-12 18:44:34 +02:00
benchmark-list.h
benchmark-loop-count.c test: remove LOG and LOGF variadic macros 2015-04-12 18:44:34 +02:00
benchmark-million-async.c
benchmark-million-timers.c test: remove LOG and LOGF variadic macros 2015-04-12 18:44:34 +02:00
benchmark-multi-accept.c
benchmark-ping-pongs.c test: remove LOG and LOGF variadic macros 2015-04-12 18:44:34 +02:00
benchmark-pound.c test: remove LOG and LOGF variadic macros 2015-04-12 18:44:34 +02:00
benchmark-pump.c test: fix -Wstrict-prototypes warnings 2017-10-05 22:26:55 +02:00
benchmark-sizes.c test: remove LOG and LOGF variadic macros 2015-04-12 18:44:34 +02:00
benchmark-spawn.c test: remove LOG and LOGF variadic macros 2015-04-12 18:44:34 +02:00
benchmark-tcp-write-batch.c
benchmark-thread.c
benchmark-udp-pummel.c
blackhole-server.c
dns-server.c
echo-server.c test,unix: fix race in test runner 2018-10-30 20:44:16 +01:00
run-benchmarks.c test: remove LOG and LOGF variadic macros 2015-04-12 18:44:34 +02:00
run-tests.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
runner-unix.c test: avoid truncating output lines 2020-01-16 17:46:31 -05:00
runner-unix.h
runner-win.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
runner-win.h 2019.05.22, Version 1.29.1 (Stable) 2019-06-07 14:22:16 -04:00
runner.c test: avoid truncating output lines 2020-01-16 17:46:31 -05:00
runner.h src,test: fix idiosyncratic comment style 2018-05-29 11:56:49 -07:00
task.h 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-active.c
test-async-multi.c win,async: queue the async wakeup req only once 2020-01-31 13:51:47 -08:00
test-async-null-cb.c sunos: fix cmpxchgi and cmpxchgl type error 2017-07-01 00:24:42 +02:00
test-async.c
test-barrier.c test: add uv_barrier_wait serial thread test 2018-10-08 11:14:41 +02:00
test-buf.c win,unix: uv_buf_init() accepts size_t 2018-05-23 10:13:57 -04:00
test-callback-order.c
test-callback-stack.c src,test: fix idiosyncratic comment style 2018-05-29 11:56:49 -07:00
test-close-fd.c warnings: fix code that emits compiler warnings 2018-11-29 11:21:44 -05:00
test-close-order.c
test-condvar.c warnings: fix code that emits compiler warnings 2018-11-29 11:21:44 -05:00
test-connect-unspecified.c test: fix connect_unspecified 2018-03-08 11:37:00 +01:00
test-connection-fail.c src,test: fix idiosyncratic comment style 2018-05-29 11:56:49 -07:00
test-cwd-and-chdir.c unix: make uv_cwd() report UV_ENOBUFS 2019-06-20 12:04:16 +02:00
test-default-loop-close.c
test-delayed-accept.c src,test: fix idiosyncratic comment style 2018-05-29 11:56:49 -07:00
test-dlerror.c test: fix test failure under NetBSD and OpenBSD 2019-12-16 15:31:02 +01:00
test-eintr-handling.c Revert "unix,fs: fix for potential partial reads/writes" 2018-01-19 17:51:08 +01:00
test-embed.c Merge branch 'v1.x' 2016-09-20 00:24:14 +02:00
test-emfile.c warnings: fix code that emits compiler warnings 2018-11-29 11:21:44 -05:00
test-env-vars.c test: fix env-vars flakiness 2020-01-13 20:48:55 -05:00
test-error.c src: add new error apis to prevent memory leaks 2018-07-06 19:35:21 +02:00
test-fail-always.c
test-fork.c 2019.05.22, Version 1.29.1 (Stable) 2019-06-07 14:22:16 -04:00
test-fs-copyfile.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-fs-event.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-fs-fd-hash.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-fs-open-flags.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-fs-poll.c unix,win: fix uv_fs_poll_stop() when active 2019-05-06 15:02:01 +02:00
test-fs-readdir.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-fs.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-get-currentexe.c
test-get-loadavg.c test: fix -Wtautological-pointer-compare warnings 2015-11-18 22:37:16 +01:00
test-get-memory.c ibmi: implement uv_interface_addresses() 2020-01-21 09:32:11 +01:00
test-get-passwd.c unix,win: add gecos field to uv_passwd_t 2018-04-10 14:32:21 -04:00
test-getaddrinfo.c win: fix free() on bad input in uv_getaddrinfo() 2017-01-08 16:29:37 -05:00
test-gethostname.c src,include: define UV_MAXHOSTNAMESIZE 2019-02-05 08:46:28 -05:00
test-getnameinfo.c test: fix -Wtautological-pointer-compare warnings 2015-11-18 22:37:16 +01:00
test-getsockname.c
test-getters-setters.c core: add getter/setter functions for easier ABI compat 2017-12-02 09:51:25 +01:00
test-gettimeofday.c unix,win: introduce uv_timeval64_t 2019-04-11 14:08:17 -04:00
test-handle-fileno.c 2018.10.09, Version 1.23.2 (Stable) 2018-11-10 17:43:07 -05:00
test-homedir.c test: handle root home directories 2016-04-08 11:08:46 -04:00
test-hrtime.c test: relax uv_hrtime() test assumptions 2019-02-21 13:02:44 +01:00
test-idle.c test: remove LOG and LOGF variadic macros 2015-04-12 18:44:34 +02:00
test-idna.c unix,win: support IDNA 2008 in uv_getaddrinfo() 2018-10-30 20:50:23 +01:00
test-ip4-addr.c unix: set sin_len and sin6_len 2019-10-04 23:58:18 +02:00
test-ip6-addr.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-ipc-heavy-traffic-deadlock-bug.c 2019.05.22, Version 1.29.1 (Stable) 2019-06-07 14:22:16 -04:00
test-ipc-send-recv.c 2019.05.22, Version 1.29.1 (Stable) 2019-06-07 14:22:16 -04:00
test-ipc.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-list.h win,async: queue the async wakeup req only once 2020-01-31 13:51:47 -08:00
test-loop-alive.c
test-loop-close.c test: add threadpool init/teardown test 2017-12-06 23:47:38 +01:00
test-loop-configure.c
test-loop-handles.c 2019.05.22, Version 1.29.1 (Stable) 2019-06-07 14:22:16 -04:00
test-loop-stop.c
test-loop-time.c
test-multiple-listen.c
test-mutexes.c unix,win: add uv_mutex_init_recursive() 2017-10-02 10:01:09 -04:00
test-osx-select.c test: remove LOG and LOGF variadic macros 2015-04-12 18:44:34 +02:00
test-pass-always.c
test-ping-pong.c win: remove some unused code 2020-01-21 12:27:27 -05:00
test-pipe-bind-error.c Merge branch 'v1.x' into merge-v1 2017-07-09 13:52:50 +02:00
test-pipe-close-stdout-read-stdin.c warnings: fix code that emits compiler warnings 2018-11-29 11:21:44 -05:00
test-pipe-connect-error.c unix: fail with ENAMETOOLONG in uv_pipe_* 2017-05-31 14:59:05 +02:00
test-pipe-connect-multiple.c test: skip self-connecting tests on cygwin 2017-05-21 16:12:30 +02:00
test-pipe-connect-prepare.c unix: don't block for io if any io handle is primed 2015-05-12 07:37:26 +02:00
test-pipe-getsockname.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-pipe-pending-instances.c win: fix setting pipe pending instances after bind 2015-08-24 23:20:35 +02:00
test-pipe-sendmsg.c cygwin: disable non-functional ipc handle send 2017-05-21 16:12:28 +02:00
test-pipe-server-close.c test: skip self-connecting tests on cygwin 2017-05-21 16:12:30 +02:00
test-pipe-set-fchmod.c src,test: fix idiosyncratic comment style 2018-05-29 11:56:49 -07:00
test-pipe-set-non-blocking.c
test-platform-output.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-poll-close-doesnt-corrupt-stack.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-poll-close.c win: LEP-0005: remove uv_file 2017-07-04 23:44:16 +02:00
test-poll-closesocket.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-poll-oob.c 2019.05.22, Version 1.29.1 (Stable) 2019-06-07 14:22:16 -04:00
test-poll.c 2019.05.22, Version 1.29.1 (Stable) 2019-06-07 14:22:16 -04:00
test-process-priority.c test: handle uv_os_setpriority() windows edge case 2018-09-25 20:56:37 -04:00
test-process-title-threadsafe.c test: skip uv_(get|set)_process_title on IBMi 2019-12-16 15:35:23 +01:00
test-process-title.c test: skip uv_(get|set)_process_title on IBMi 2019-12-16 15:35:23 +01:00
test-queue-foreach-delete.c test: fix gcc 8 warnings for tests 2019-08-06 12:01:15 -04:00
test-random.c unix,win: add uv_random() 2019-09-18 08:09:14 +02:00
test-ref.c test: factor out fsevents skip explanation 2017-05-21 16:12:08 +02:00
test-run-nowait.c
test-run-once.c
test-semaphore.c
test-shutdown-close.c
test-shutdown-eof.c
test-shutdown-twice.c unix,test: deadstore fixes 2017-04-05 09:57:20 -04:00
test-signal-multiple-loops.c warnings: fix code that emits compiler warnings 2018-11-29 11:21:44 -05:00
test-signal-pending-on-close.c unix,signal: keep handle active if pending signal 2019-08-19 22:39:06 +02:00
test-signal.c 2018.02.22, Version 1.19.2 (Stable) 2018-02-24 17:04:48 +01:00
test-socket-buffer-size.c
test-spawn.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-stdio-over-pipes.c 2018.11.14, Version 1.24.0 (Stable) 2018-11-19 16:08:51 -05:00
test-strscpy.c unix: harden string copying, introduce strscpy() 2018-12-04 17:08:09 +01:00
test-tcp-alloc-cb-fail.c unix,win: make on_alloc_cb failures more resilient 2016-08-17 09:57:55 +02:00
test-tcp-bind6-error.c
test-tcp-bind-error.c tcp: add uv_tcp_close_reset method 2019-08-19 23:41:15 +02:00
test-tcp-close-accept.c warnings: fix code that emits compiler warnings 2018-11-29 11:21:44 -05:00
test-tcp-close-reset.c test: fix -Wsign-compare warning 2019-09-06 22:48:06 +02:00
test-tcp-close-while-connecting.c test: fix tcp_close_while_connecting CI failures 2016-10-14 01:57:15 +02:00
test-tcp-close.c
test-tcp-connect6-error.c
test-tcp-connect-error-after-write.c
test-tcp-connect-error.c
test-tcp-connect-timeout.c tests: skip some tests when network is unreachable 2015-07-13 10:28:46 +02:00
test-tcp-create-socket-early.c cygwin: implement support for cygwin and msys2 2017-05-21 16:12:21 +02:00
test-tcp-flags.c
test-tcp-oob.c warnings: fix code that emits compiler warnings 2018-11-29 11:21:44 -05:00
test-tcp-open.c test: fix warning in test-tcp-open 2018-08-16 10:28:49 +02:00
test-tcp-read-stop.c
test-tcp-shutdown-after-write.c
test-tcp-try-write-error.c test: allow UV_ECONNRESET in tcp_try_write_error 2019-06-27 17:23:53 -04:00
test-tcp-try-write.c stream: support empty uv_try_write on unix 2015-10-04 18:06:08 -04:00
test-tcp-unexpected-read.c
test-tcp-write-after-connect.c warnings: fix code that emits compiler warnings 2018-11-29 11:21:44 -05:00
test-tcp-write-fail.c win, test: fix compilation warning 2015-09-29 09:57:27 +02:00
test-tcp-write-queue-order.c test: increase connection timeout to 1 second 2018-03-31 17:05:26 -04:00
test-tcp-write-to-half-open-connection.c
test-tcp-writealot.c test: fix test-tcp-writealot flakiness on arm 2016-09-12 08:33:41 +02:00
test-thread-affinity.c thread: support for affinity and detach 2018-11-10 18:01:50 -05:00
test-thread-equal.c
test-thread.c test: fix pthread memory leak 2020-01-07 23:25:50 -05:00
test-threadpool-cancel.c unix,win: add uv_random() 2019-09-18 08:09:14 +02:00
test-threadpool.c
test-timer-again.c 2018.08.18, Version 1.23.0 (Stable) 2018-08-24 12:33:18 +02:00
test-timer-from-check.c
test-timer.c timer: fix uv_timer_start on closing timer 2019-08-23 20:42:37 +02:00
test-tmpdir.c win: fix uv_os_tmpdir when env var is 260 chars 2019-07-03 14:18:04 +02:00
test-tty-duplicate-key.c 2019.05.22, Version 1.29.1 (Stable) 2019-06-07 14:22:16 -04:00
test-tty.c 2019.05.22, Version 1.29.1 (Stable) 2019-06-07 14:22:16 -04:00
test-udp-alloc-cb-fail.c src,test: fix idiosyncratic comment style 2018-05-29 11:56:49 -07:00
test-udp-bind.c
test-udp-connect.c udp: add support for UDP connected sockets 2019-03-16 12:05:37 -04:00
test-udp-create-socket-early.c cygwin: implement support for cygwin and msys2 2017-05-21 16:12:21 +02:00
test-udp-dgram-too-big.c
test-udp-ipv6.c test,openbsd: use RETURN_SKIP in UDP IPv6 tests 2018-04-17 11:48:55 +02:00
test-udp-multicast-interface6.c zos: fix udp ipv6 test cases 2018-05-15 11:29:06 +02:00
test-udp-multicast-interface.c test: allow multicast not permitted status 2018-01-09 14:32:35 +01:00
test-udp-multicast-join6.c 2020.01.24, Version 1.34.2 (Stable) 2020-01-31 13:34:36 -08:00
test-udp-multicast-join.c test: fix test failure under NetBSD and OpenBSD 2019-12-16 15:31:02 +01:00
test-udp-multicast-ttl.c test: allow multicast not permitted status 2018-01-09 14:32:35 +01:00
test-udp-open.c 2019.05.22, Version 1.29.1 (Stable) 2019-06-07 14:22:16 -04:00
test-udp-options.c win: allow setting udp socket options before bind 2018-06-04 09:19:06 -04:00
test-udp-send-and-recv.c src,test: fix idiosyncratic comment style 2018-05-29 11:56:49 -07:00
test-udp-send-hang-loop.c test: allow net unreachable status in udp test 2018-01-09 15:09:46 +01:00
test-udp-send-immediate.c src,test: fix idiosyncratic comment style 2018-05-29 11:56:49 -07:00
test-udp-send-unreachable.c
test-udp-try-send.c win,udp: implements uv_udp_try_send 2017-07-01 17:20:15 +02:00
test-uname.c unix,win: add uv_os_uname() 2019-01-14 10:47:20 -05:00
test-walk-handles.c
test-watcher-cross-stop.c cygwin: implement support for cygwin and msys2 2017-05-21 16:12:21 +02:00
test.gyp win,async: queue the async wakeup req only once 2020-01-31 13:51:47 -08:00