]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
wrap ns_client_error() for unit testing
authorEvan Hunt <each@isc.org>
Wed, 22 Jan 2025 02:29:56 +0000 (18:29 -0800)
committerEvan Hunt <each@isc.org>
Tue, 25 Feb 2025 22:40:48 +0000 (22:40 +0000)
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

index 2adca9730321f1e0c07ca01396fc98ee015abbd7..19fae38dcf86c42aec944194b869e5bef677b406 100644 (file)
@@ -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;
+}