Commit f9c30f3e authored by Lionel Flandrin's avatar Lionel Flandrin

Problem: test helper recv_string_expect_success ignores the flags argument

Solution: pass the flags to zmq_recv
parent 3c2656eb
...@@ -86,8 +86,8 @@ void recv_string_expect_success (void *socket, const char *str, int flags) ...@@ -86,8 +86,8 @@ void recv_string_expect_success (void *socket, const char *str, int flags)
"used for strings longer than 255 " "used for strings longer than 255 "
"characters"); "characters");
const int rc = const int rc = TEST_ASSERT_SUCCESS_ERRNO (
TEST_ASSERT_SUCCESS_ERRNO (zmq_recv (socket, buffer, sizeof (buffer), 0)); zmq_recv (socket, buffer, sizeof (buffer), flags));
TEST_ASSERT_EQUAL_INT ((int) len, rc); TEST_ASSERT_EQUAL_INT ((int) len, rc);
if (str) if (str)
TEST_ASSERT_EQUAL_STRING_LEN (str, buffer, len); TEST_ASSERT_EQUAL_STRING_LEN (str, buffer, len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment