mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 15:41:05 +08:00
fix sndbuf/rcvbuf tests
This commit is contained in:
parent
fca45921a8
commit
50c2f7af8f
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user