Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: zmq_ctx_get API broken #4038

Merged
merged 1 commit into from
Sep 11, 2020
Merged

Problem: zmq_ctx_get API broken #4038

merged 1 commit into from
Sep 11, 2020

Conversation

bluca
Copy link
Member

@bluca bluca commented Sep 10, 2020

Solution: restore EINVAL as errno on unknown option.
Broken by #3642 which started to
return EFAULT instead

Solution: restore EINVAL as errno on unknown option.
Broken by zeromq#3642 which started to
return EFAULT instead
@somdoron somdoron merged commit e915449 into zeromq:master Sep 11, 2020
@bluca bluca deleted the api_breakage branch September 11, 2020 07:38
@@ -283,6 +283,14 @@ void test_ctx_option_blocky ()
test_context_socket_close (router);
}

void test_ctx_option_invalid ()
{
TEST_ASSERT_EQUAL_INT (-1, zmq_ctx_set (get_test_context (), -1, 0));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for the future: You can simply write:

     TEST_ASSERT_FAILURE_ERRNO (EINVAL, zmq_ctx_set (get_test_context (), -1, 0));

instead of the two separate assertions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants