aboutsummaryrefslogtreecommitdiff
path: root/test/test-tcp-bind-error.c
diff options
context:
space:
mode:
authorBert Belder <bertbelder@gmail.com>2012-10-16 17:20:32 +0200
committerBert Belder <bertbelder@gmail.com>2012-10-17 01:24:49 +0200
commit47eb03490ac6e2456f903c0e72ecb22f68b3d0e9 (patch)
tree286060fb932d5de15e5d64db002f37ba7c049bf7 /test/test-tcp-bind-error.c
parent28eb619c6504e7f6c10f517487679980aa8560bd (diff)
downloadlibuv-47eb03490ac6e2456f903c0e72ecb22f68b3d0e9.tar.gz
libuv-47eb03490ac6e2456f903c0e72ecb22f68b3d0e9.zip
test: move loop cleanup code to the individual tests
Diffstat (limited to 'test/test-tcp-bind-error.c')
-rw-r--r--test/test-tcp-bind-error.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/test-tcp-bind-error.c b/test/test-tcp-bind-error.c
index 9512519a..5c3be70a 100644
--- a/test/test-tcp-bind-error.c
+++ b/test/test-tcp-bind-error.c
@@ -63,6 +63,7 @@ TEST_IMPL(tcp_bind_error_addrinuse) {
ASSERT(close_cb_called == 2);
+ MAKE_VALGRIND_HAPPY();
return 0;
}
@@ -87,6 +88,7 @@ TEST_IMPL(tcp_bind_error_addrnotavail_1) {
ASSERT(close_cb_called == 1);
+ MAKE_VALGRIND_HAPPY();
return 0;
}
@@ -108,6 +110,7 @@ TEST_IMPL(tcp_bind_error_addrnotavail_2) {
ASSERT(close_cb_called == 1);
+ MAKE_VALGRIND_HAPPY();
return 0;
}
@@ -133,6 +136,7 @@ TEST_IMPL(tcp_bind_error_fault) {
ASSERT(close_cb_called == 1);
+ MAKE_VALGRIND_HAPPY();
return 0;
}
@@ -159,6 +163,7 @@ TEST_IMPL(tcp_bind_error_inval) {
ASSERT(close_cb_called == 1);
+ MAKE_VALGRIND_HAPPY();
return 0;
}
@@ -174,6 +179,7 @@ TEST_IMPL(tcp_bind_localhost_ok) {
r = uv_tcp_bind(&server, addr);
ASSERT(r == 0);
+ MAKE_VALGRIND_HAPPY();
return 0;
}
@@ -187,5 +193,6 @@ TEST_IMPL(tcp_listen_without_bind) {
r = uv_listen((uv_stream_t*)&server, 128, NULL);
ASSERT(r == 0);
+ MAKE_VALGRIND_HAPPY();
return 0;
}