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

Problem: tests use deprecated zmq_term function

Solution: replace all occurrences with `zmq_ctx_term`
This commit is contained in:
Constantin Rack 2016-02-01 21:40:24 +01:00
parent e1254e100e
commit 0d171563d0
10 changed files with 13 additions and 13 deletions

View File

@ -75,7 +75,7 @@ int main (int, char *[])
rc = zmq_close (s_out);
assert (rc == 0);
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
assert (rc == 0);
return 0;

View File

@ -104,7 +104,7 @@ int main (void)
rc = zmq_close (to);
assert (rc == 0);
rc = zmq_term (context);
rc = zmq_ctx_term (context);
assert (rc == 0);
// TEST 2
@ -169,7 +169,7 @@ int main (void)
rc = zmq_close (to);
assert (rc == 0);
rc = zmq_term (context);
rc = zmq_ctx_term (context);
assert (rc == 0);
// TEST 3
@ -242,7 +242,7 @@ int main (void)
rc = zmq_close (frontend);
assert (rc == 0);
rc = zmq_term (context);
rc = zmq_ctx_term (context);
assert (rc == 0);
}

View File

@ -50,7 +50,7 @@ int main (void)
// Child process
// Immediately close parent sockets and context
zmq_close (pull);
zmq_term (ctx);
zmq_ctx_term (ctx);
// Create new context, socket, connect and send some messages
void *child_ctx = zmq_ctx_new ();

View File

@ -57,7 +57,7 @@ int main (void)
rc = zmq_close (sb);
assert (rc == 0);
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
assert (rc == 0);
return 0 ;

View File

@ -146,7 +146,7 @@ int main (void)
assert (rc == 0);
rc = zmq_close (dealer);
assert (rc == 0);
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
assert (rc == 0);
return 0 ;

View File

@ -57,7 +57,7 @@ int main (void)
rc = zmq_close (sb);
assert (rc == 0);
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
assert (rc == 0);
return 0 ;

View File

@ -65,7 +65,7 @@ int main (void)
rc = zmq_close (sa);
assert (rc == 0);
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
assert (rc == 0);
return 0 ;

View File

@ -95,7 +95,7 @@ int main (void)
rc = zmq_close (s1);
assert (rc == 0);
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
assert (rc == 0);
}

View File

@ -103,7 +103,7 @@ int main (void)
assert (rc == 0);
rc = zmq_close (sub);
assert (rc == 0);
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
assert (rc == 0);
return 0 ;

View File

@ -81,7 +81,7 @@ int main (void)
assert (rc == 0);
rc = zmq_close (push);
assert (rc == 0);
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
assert (rc == 0);
@ -122,7 +122,7 @@ int main (void)
assert (rc == 0);
rc = zmq_close (push);
assert (rc == 0);
rc = zmq_term (ctx);
rc = zmq_ctx_term (ctx);
assert (rc == 0);
return 0;