0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-27 15:41:05 +08:00

Cleaned up test case

This commit is contained in:
Pieter Hintjens 2015-07-29 12:09:00 +02:00
parent 146be48495
commit 1fdf8f78e4

View File

@ -58,7 +58,6 @@ int main()
rcvbytes = zmq_msg_recv(&msg, zsock, 0);
assert(rcvbytes!=-1);
assert(!zmq_msg_more(&msg));
printf("got %d bytes\n", rcvbytes);
}
// for this test, we only collect the first chunk
@ -72,7 +71,6 @@ int main()
zmq_ctx_destroy(zctx);
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
assert(rcvbuf[3]==0xef);