From: Evan Hunt Date: Wed, 22 Jan 2025 02:29:56 +0000 (-0800) Subject: wrap ns_client_error() for unit testing X-Git-Tag: ondrej/lock-free-qpzone-reads-v1~25^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae37ef45ff45db4919842ad29d3f8dfe0c77c76c;p=thirdparty%2Fbind9.git 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. --- diff --git a/tests/ns/netmgr_wrap.c b/tests/ns/netmgr_wrap.c index 2adca973032..19fae38dcf8 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; +}