0
0
mirror of https://github.com/zeromq/libzmq.git synced 2025-01-15 02:07:59 +08:00

Problem: test helper recv_string_expect_success ignores the flags argument

Solution: pass the flags to zmq_recv
This commit is contained in:
Lionel Flandrin 2018-05-10 11:40:22 +02:00
parent 3c2656eb52
commit f9c30f3e19

View File

@ -86,8 +86,8 @@ void recv_string_expect_success (void *socket, const char *str, int flags)
"used for strings longer than 255 "
"characters");
const int rc =
TEST_ASSERT_SUCCESS_ERRNO (zmq_recv (socket, buffer, sizeof (buffer), 0));
const int rc = TEST_ASSERT_SUCCESS_ERRNO (
zmq_recv (socket, buffer, sizeof (buffer), flags));
TEST_ASSERT_EQUAL_INT ((int) len, rc);
if (str)
TEST_ASSERT_EQUAL_STRING_LEN (str, buffer, len);