be pedantic and call zmq_close in tests

This commit is contained in:
Dylan Cali 2015-06-28 22:32:55 -05:00
parent b0023f0ccf
commit 6b8aae0b54
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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);