From a468257e5dd38953988d6ff6c7ab043585aad155 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Tue, 9 Jan 2018 14:37:42 +0100 Subject: [PATCH] test: allow net unreachable status in udp test Since the destination address may not be routable, UV_ENETUNREACH is an error that can happen and should be handled. Fixes: https://github.com/libuv/libuv/issues/1680 PR-URL: https://github.com/libuv/libuv/pull/1695 Reviewed-By: Colin Ihrig Reviewed-By: Santiago Gimeno --- test/test-udp-send-hang-loop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-udp-send-hang-loop.c b/test/test-udp-send-hang-loop.c index 6253ff7a..bf4dfebf 100644 --- a/test/test-udp-send-hang-loop.c +++ b/test/test-udp-send-hang-loop.c @@ -67,7 +67,7 @@ static void idle_cb(uv_idle_t* handle) { static void send_cb(uv_udp_send_t* req, int status) { ASSERT(req != NULL); - ASSERT(status == 0); + ASSERT(status == 0 || status == UV_ENETUNREACH); CHECK_OBJECT(req->handle, uv_udp_t, client); CHECK_OBJECT(req, uv_udp_send_t, send_req); req->handle = NULL;