diff options
author | Trevor Norris <trev.norris@gmail.com> | 2023-03-12 07:59:00 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-12 14:59:00 +0100 |
commit | 91a7e49846f8786132da08e48cfd92bdd12f8cf7 (patch) | |
tree | 94793f30535dacf7c470880da6f2ccba525d45c1 /test/test-tcp-bind6-error.c | |
parent | dfb206c8b06d9581dbbc52e2013dc18681694683 (diff) | |
download | libuv-91a7e49846f8786132da08e48cfd92bdd12f8cf7.tar.gz libuv-91a7e49846f8786132da08e48cfd92bdd12f8cf7.zip |
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.
Diffstat (limited to 'test/test-tcp-bind6-error.c')
-rw-r--r-- | test/test-tcp-bind6-error.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test-tcp-bind6-error.c b/test/test-tcp-bind6-error.c index 86181b70..656ebe34 100644 --- a/test/test-tcp-bind6-error.c +++ b/test/test-tcp-bind6-error.c @@ -66,7 +66,7 @@ TEST_IMPL(tcp_bind6_error_addrinuse) { ASSERT(close_cb_called == 2); - MAKE_VALGRIND_HAPPY(); + MAKE_VALGRIND_HAPPY(uv_default_loop()); return 0; } @@ -92,7 +92,7 @@ TEST_IMPL(tcp_bind6_error_addrnotavail) { ASSERT(close_cb_called == 1); - MAKE_VALGRIND_HAPPY(); + MAKE_VALGRIND_HAPPY(uv_default_loop()); return 0; } @@ -120,7 +120,7 @@ TEST_IMPL(tcp_bind6_error_fault) { ASSERT(close_cb_called == 1); - MAKE_VALGRIND_HAPPY(); + MAKE_VALGRIND_HAPPY(uv_default_loop()); return 0; } @@ -151,7 +151,7 @@ TEST_IMPL(tcp_bind6_error_inval) { ASSERT(close_cb_called == 1); - MAKE_VALGRIND_HAPPY(); + MAKE_VALGRIND_HAPPY(uv_default_loop()); return 0; } @@ -171,6 +171,6 @@ TEST_IMPL(tcp_bind6_localhost_ok) { r = uv_tcp_bind(&server, (const struct sockaddr*) &addr, 0); ASSERT(r == 0); - MAKE_VALGRIND_HAPPY(); + MAKE_VALGRIND_HAPPY(uv_default_loop()); return 0; } |