mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-22 16:02:31 +02:00
Cleaned up test case
This commit is contained in:
@@ -58,7 +58,6 @@ int main()
|
|||||||
rcvbytes = zmq_msg_recv(&msg, zsock, 0);
|
rcvbytes = zmq_msg_recv(&msg, zsock, 0);
|
||||||
assert(rcvbytes!=-1);
|
assert(rcvbytes!=-1);
|
||||||
assert(!zmq_msg_more(&msg));
|
assert(!zmq_msg_more(&msg));
|
||||||
printf("got %d bytes\n", rcvbytes);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// for this test, we only collect the first chunk
|
// for this test, we only collect the first chunk
|
||||||
@@ -72,7 +71,6 @@ int main()
|
|||||||
zmq_ctx_destroy(zctx);
|
zmq_ctx_destroy(zctx);
|
||||||
|
|
||||||
assert(rcvbytes >= 4);
|
assert(rcvbytes >= 4);
|
||||||
printf("%x %x %x %x\n", rcvbuf[0], rcvbuf[1], rcvbuf[2], rcvbuf[3]);
|
|
||||||
|
|
||||||
// notice that only the 1st byte gets corrupted
|
// notice that only the 1st byte gets corrupted
|
||||||
assert(rcvbuf[3]==0xef);
|
assert(rcvbuf[3]==0xef);
|
||||||
|
Reference in New Issue
Block a user