From 91a7e49846f8786132da08e48cfd92bdd12f8cf7 Mon Sep 17 00:00:00 2001 From: Trevor Norris Date: Sun, 12 Mar 2023 07:59:00 -0600 Subject: test: silence more valgrind warnings (#3917) Pass the loop to MAKE_VALGRIND_HAPPY() so it's explicit on which loop needs to be cleaned up. Since it asserts on uv_loop_close(), need to remove a couple of those that were being done before the call. Cleanup where loop was assigned, so the entire test either uses loop or uv_default_loop(). Not both. Also take care of any reqs that may have been left uncleaned. --- test/benchmark-tcp-write-batch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/benchmark-tcp-write-batch.c') diff --git a/test/benchmark-tcp-write-batch.c b/test/benchmark-tcp-write-batch.c index 16aa72f6..aedefb74 100644 --- a/test/benchmark-tcp-write-batch.c +++ b/test/benchmark-tcp-write-batch.c @@ -139,6 +139,6 @@ BENCHMARK_IMPL(tcp_write_batch) { (long)NUM_WRITE_REQS, (stop - start) / 1e9); - MAKE_VALGRIND_HAPPY(); + MAKE_VALGRIND_HAPPY(loop); return 0; } -- cgit v1.2.3