From 6b8aae0b54bf083d4e786b39e00a011c822b6350 Mon Sep 17 00:00:00 2001 From: Dylan Cali Date: Sun, 28 Jun 2015 22:32:55 -0500 Subject: [PATCH] be pedantic and call zmq_close in tests --- tests/test_unbind_inproc.cpp | 3 +++ tests/test_unbind_wildcard.cpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/test_unbind_inproc.cpp b/tests/test_unbind_inproc.cpp index 104d8cb3..2b1d8982 100644 --- a/tests/test_unbind_inproc.cpp +++ b/tests/test_unbind_inproc.cpp @@ -33,6 +33,9 @@ int main (void) rc = zmq_unbind (sb, "inproc://a"); assert (rc == 0); + rc = zmq_close (sb); + assert (rc == 0); + rc = zmq_ctx_term (ctx); assert (rc == 0); diff --git a/tests/test_unbind_wildcard.cpp b/tests/test_unbind_wildcard.cpp index 1a4e72a0..dae1d423 100644 --- a/tests/test_unbind_wildcard.cpp +++ b/tests/test_unbind_wildcard.cpp @@ -38,6 +38,9 @@ int main (void) rc = zmq_unbind (sb, endpoint); assert (rc == 0); + rc = zmq_close (sb); + assert (rc == 0); + rc = zmq_ctx_term (ctx); assert (rc == 0);