From ae37ef45ff45db4919842ad29d3f8dfe0c77c76c Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Tue, 21 Jan 2025 18:29:56 -0800 Subject: [PATCH] wrap ns_client_error() for unit testing When testing, the client object doesn't have a proper netmgr handle, so ns_client_error() needs to be a no-op. --- tests/ns/netmgr_wrap.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/ns/netmgr_wrap.c b/tests/ns/netmgr_wrap.c index 2adca97303..19fae38dcf 100644 --- a/tests/ns/netmgr_wrap.c +++ b/tests/ns/netmgr_wrap.c @@ -109,3 +109,9 @@ isc_nm_socket_type(const isc_nmhandle_t *handle ISC_ATTR_UNUSED) { */ return isc_nm_udpsocket; } + +void +ns_client_error(ns_client_t *client ISC_ATTR_UNUSED, + isc_result_t result ISC_ATTR_UNUSED) { + return; +}