mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08:00
Problem: test_zmq_ppoll_signals does not cleanup context
Solution: do it, to avoid false positive in valgrind
This commit is contained in:
parent
7e0fdd82de
commit
a820627f55
@ -112,6 +112,7 @@ void test_ppoll_signals ()
|
|||||||
|
|
||||||
// finish
|
// finish
|
||||||
test_context_socket_close (socket);
|
test_context_socket_close (socket);
|
||||||
|
teardown_test_context ();
|
||||||
|
|
||||||
// wait for child
|
// wait for child
|
||||||
int status = 0;
|
int status = 0;
|
||||||
@ -176,6 +177,7 @@ void test_ppoll_signals ()
|
|||||||
// wait before closing socket, so that parent has time to receive
|
// wait before closing socket, so that parent has time to receive
|
||||||
sleep (1);
|
sleep (1);
|
||||||
test_context_socket_close (socket);
|
test_context_socket_close (socket);
|
||||||
|
teardown_test_context ();
|
||||||
_Exit (0);
|
_Exit (0);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user