From a0d1c5766d38a588fec36240473384a1776d4bd2 Mon Sep 17 00:00:00 2001 From: Brad House Date: Tue, 23 Jul 2024 14:29:03 -0400 Subject: [PATCH] test: bypass BadLoopbackServerNoTimeouts strict validation on NetBSD --- test/ares-test-mock-et.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ares-test-mock-et.cc b/test/ares-test-mock-et.cc index 59843105..f9ddf53a 100644 --- a/test/ares-test-mock-et.cc +++ b/test/ares-test-mock-et.cc @@ -143,7 +143,7 @@ TEST_P(MockUDPEventThreadTest, BadLoopbackServerNoTimeouts) { * This test is really just testing an optimization, UDP is connectionless so you * should expect most connections to rely on timeouts and not ICMP unreachable. */ -# if defined(__sun) || defined(_WIN32) +# if defined(__sun) || defined(_WIN32) || defined(__NetBSD__) EXPECT_TRUE(result[i].status_ == ARES_ECONNREFUSED || result[i].status_ == ARES_ETIMEOUT || result[i].status_ == ARES_ESERVFAIL); # else EXPECT_EQ(ARES_ECONNREFUSED, result[i].status_);