mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-02 14:03:43 +01:00
Problem: test helper recv_string_expect_success ignores the flags argument
Solution: pass the flags to zmq_recv
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user