aboutsummaryrefslogtreecommitdiff
path: root/tests/sock.c
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-01-18 01:16:40 -0800
committerGarrett D'Amore <garrett@damore.org>2017-01-18 01:16:40 -0800
commit7e844cf618d67675928fb4c6fadc6cc16db19d19 (patch)
treecbb6b64780e01f14722887a72f6f727530fc4ef9 /tests/sock.c
parent37582a286039f44cc7d8d3b0790e83c03a1ee5bc (diff)
downloadnng-7e844cf618d67675928fb4c6fadc6cc16db19d19.tar.gz
nng-7e844cf618d67675928fb4c6fadc6cc16db19d19.tar.bz2
nng-7e844cf618d67675928fb4c6fadc6cc16db19d19.zip
Fixes for valgrind issues.
Diffstat (limited to 'tests/sock.c')
-rw-r--r--tests/sock.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/sock.c b/tests/sock.c
index 7d1d226b..6a122cdf 100644
--- a/tests/sock.c
+++ b/tests/sock.c
@@ -10,10 +10,15 @@
#include "convey.h"
#include "stubs.h"
#include "nng.h"
+#include "core/nng_impl.h"
#include <string.h>
-TestMain("Socket Operations", {
+Main({
+ nni_init();
+
+ Test("Socket Operations", {
+
Convey("We are able to open a PAIR socket", {
int rv;
nng_socket *sock = NULL;
@@ -194,4 +199,7 @@ TestMain("Socket Operations", {
nng_close(sock2);
})
})
+ })
+
+ nni_fini();
})