0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-14 01:37:56 +08:00

be pedantic and call zmq_close in tests

This commit is contained in:
Dylan Cali 2015-06-28 22:32:15 -05:00
parent d14f419743
commit 0f208c122d
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);