From 694f23429b9c3c0e4b000f65879f323efb01fd85 Mon Sep 17 00:00:00 2001 From: Santiago Gimeno Date: Wed, 2 Sep 2020 20:40:15 +0200 Subject: [PATCH] test: fix pump and tcp_write_batch benchmarks PR-URL: https://github.com/libuv/libuv/pull/2982 Reviewed-By: Ben Noordhuis --- test/benchmark-pump.c | 2 ++ test/blackhole-server.c | 1 + 2 files changed, 3 insertions(+) diff --git a/test/benchmark-pump.c b/test/benchmark-pump.c index 8685258e0..7d3977dfc 100644 --- a/test/benchmark-pump.c +++ b/test/benchmark-pump.c @@ -390,6 +390,7 @@ HELPER_IMPL(tcp_pump_server) { r = uv_listen((uv_stream_t*)&tcpServer, MAX_WRITE_HANDLES, connection_cb); ASSERT(r == 0); + notify_parent_process(); uv_run(loop, UV_RUN_DEFAULT); return 0; @@ -411,6 +412,7 @@ HELPER_IMPL(pipe_pump_server) { r = uv_listen((uv_stream_t*)&pipeServer, MAX_WRITE_HANDLES, connection_cb); ASSERT(r == 0); + notify_parent_process(); uv_run(loop, UV_RUN_DEFAULT); MAKE_VALGRIND_HAPPY(); diff --git a/test/blackhole-server.c b/test/blackhole-server.c index ad878b35c..9b21d1e0e 100644 --- a/test/blackhole-server.c +++ b/test/blackhole-server.c @@ -114,6 +114,7 @@ HELPER_IMPL(tcp4_blackhole_server) { r = uv_listen((uv_stream_t*)&tcp_server, 128, connection_cb); ASSERT(r == 0); + notify_parent_process(); r = uv_run(loop, UV_RUN_DEFAULT); ASSERT(0 && "Blackhole server dropped out of event loop.");