Commit 0f208c12 authored by Dylan Cali's avatar Dylan Cali

be pedantic and call zmq_close in tests

parent d14f4197
...@@ -33,6 +33,9 @@ int main (void) ...@@ -33,6 +33,9 @@ int main (void)
rc = zmq_unbind (sb, "inproc://a"); rc = zmq_unbind (sb, "inproc://a");
assert (rc == 0); assert (rc == 0);
rc = zmq_close (sb);
assert (rc == 0);
rc = zmq_ctx_term (ctx); rc = zmq_ctx_term (ctx);
assert (rc == 0); assert (rc == 0);
......
...@@ -38,6 +38,9 @@ int main (void) ...@@ -38,6 +38,9 @@ int main (void)
rc = zmq_unbind (sb, endpoint); rc = zmq_unbind (sb, endpoint);
assert (rc == 0); assert (rc == 0);
rc = zmq_close (sb);
assert (rc == 0);
rc = zmq_ctx_term (ctx); rc = zmq_ctx_term (ctx);
assert (rc == 0); assert (rc == 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment