From 2d30ac113099268839b57570e5217ae85ec09e53 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 a0c8d858..ee9bd95d 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_);