From c198b0ceb349d8b1154d4b2f7b2ee373d6fd21c4 Mon Sep 17 00:00:00 2001 From: Azat Khuzhin Date: Sat, 13 Aug 2022 20:48:00 +0200 Subject: [PATCH] test: fix util/getaddrinfo for netbsd Fixes: #1316 --- test/regress_util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/regress_util.c b/test/regress_util.c index 211453667e..d339659ffe 100644 --- a/test/regress_util.c +++ b/test/regress_util.c @@ -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 */