Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test: make threadpool tests valgrind-compliant

Delete the event loop after the test to stop valgrind from complaining
about memory leaks.
  • Loading branch information...
commit e7f384f8532493b52916968a8b9e995e534e6b7b 1 parent 4ba03dd
@bnoordhuis bnoordhuis authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 test/test-threadpool-cancel.c
View
4 test/test-threadpool-cancel.c
@@ -195,6 +195,7 @@ TEST_IMPL(threadpool_cancel_getaddrinfo) {
cleanup_threadpool();
+ MAKE_VALGRIND_HAPPY();
return 0;
}
@@ -220,6 +221,7 @@ TEST_IMPL(threadpool_cancel_work) {
cleanup_threadpool();
+ MAKE_VALGRIND_HAPPY();
return 0;
}
@@ -271,6 +273,7 @@ TEST_IMPL(threadpool_cancel_fs) {
cleanup_threadpool();
+ MAKE_VALGRIND_HAPPY();
return 0;
}
@@ -303,5 +306,6 @@ TEST_IMPL(threadpool_cancel_single) {
ASSERT(0 == uv_run(loop, UV_RUN_DEFAULT));
ASSERT(req.data != NULL); /* Should have been updated by nop_done_cb(). */
+ MAKE_VALGRIND_HAPPY();
return 0;
}

0 comments on commit e7f384f

Please sign in to comment.
Something went wrong with that request. Please try again.