0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 23:01:04 +08:00

fix sndbuf/rcvbuf tests

This commit is contained in:
somdoron 2016-05-03 19:46:34 +03:00
parent fca45921a8
commit 50c2f7af8f

View File

@ -40,15 +40,7 @@ void test_setsockopt_tcp_recv_buffer (void)
rc = zmq_getsockopt (socket, ZMQ_RCVBUF, &val, &placeholder);
assert (rc == 0);
assert (val == 8192);
rc = zmq_setsockopt (socket, ZMQ_RCVBUF, &val, sizeof (val));
assert (rc == 0);
assert (val == 8192);
rc = zmq_getsockopt (socket, ZMQ_RCVBUF, &val, &placeholder);
assert (rc == 0);
assert (val == 8192);
assert (val == -1);
val = 16384;
@ -75,15 +67,7 @@ void test_setsockopt_tcp_send_buffer (void)
rc = zmq_getsockopt (socket, ZMQ_SNDBUF, &val, &placeholder);
assert (rc == 0);
assert (val == 8192);
rc = zmq_setsockopt (socket, ZMQ_SNDBUF, &val, sizeof (val));
assert (rc == 0);
assert (val == 8192);
rc = zmq_getsockopt (socket, ZMQ_SNDBUF, &val, &placeholder);
assert (rc == 0);
assert (val == 8192);
assert (val == -1);
val = 16384;