Skip to content

Commit

Permalink
test: fix util/getaddrinfo for netbsd
Browse files Browse the repository at this point in the history
  • Loading branch information
azat committed Aug 13, 2022
1 parent 86b5d2e commit c198b0c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/regress_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,8 @@ test_evutil_getaddrinfo(void *arg)
hints.ai_family = PF_UNSPEC;
hints.ai_flags = EVUTIL_AI_NUMERICHOST;
r = evutil_getaddrinfo("www.google.com", "80", &hints, &ai);
tt_int_op(r, ==, EVUTIL_EAI_NONAME);
if (r != EVUTIL_EAI_SERVICE && r != EVUTIL_EAI_NONAME)
tt_fail_msg("error is neither EAI_SERVICE nor EAI_NONAME\n");
tt_ptr_op(ai, ==, NULL);

/* Try symbolic service names wit AI_NUMERICSERV */
Expand Down

0 comments on commit c198b0c

Please sign in to comment.