Problem: lack test case for large stream messages

Solution: added to test_stream.cpp
This commit is contained in:
Pieter Hintjens
2015-07-19 16:11:22 +02:00
parent b791031423
commit 92c4decb69
2 changed files with 37 additions and 10 deletions

View File

@@ -32,7 +32,7 @@
#include "../include/zmq.h"
#include "../src/stdint.hpp"
#include "platform.hpp"
#include "../src/platform.hpp"
// This defines the settle time used in tests; raise this if we
// get test failures on slower systems due to binds/connects not
@@ -90,7 +90,7 @@ bounce (void *server, void *client)
rc = zmq_getsockopt (server, ZMQ_RCVMORE, &rcvmore, &sz);
assert (rc == 0);
assert (!rcvmore);
// Send two parts back to client
rc = zmq_send (server, buffer, 32, ZMQ_SNDMORE);
assert (rc == 32);
@@ -233,7 +233,7 @@ void s_recv_seq (void *socket, ...)
va_list ap;
va_start (ap, socket);
const char * data = va_arg (ap, const char *);
while (true) {
int rc = zmq_msg_recv (&msg, socket, 0);
assert (rc != -1);