From aa59bb5effd57c106ee94f4e4170fd32be420624 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Tue, 29 Mar 2022 23:30:44 -0700 Subject: [PATCH] fixup! WIP: convert unit tests to isc_loopmgr --- lib/dns/tests/dnstest.c | 5 ----- lib/dns/tests/dnstest.h | 1 - 2 files changed, 6 deletions(-) diff --git a/lib/dns/tests/dnstest.c b/lib/dns/tests/dnstest.c index 041209522c..c74c8fd9e5 100644 --- a/lib/dns/tests/dnstest.c +++ b/lib/dns/tests/dnstest.c @@ -71,7 +71,6 @@ isc_loopmgr_t *loopmgr = NULL; isc_task_t *maintask = NULL; isc_timermgr_t *timermgr = NULL; dns_zonemgr_t *zonemgr = NULL; -bool loop_running = false; int ncpus; bool debug_mem_record = true; @@ -98,10 +97,6 @@ cleanup_managers(void) { isc_task_destroy(&maintask); } - if (loop_running) { - isc_loopmgr_destroy(&loopmgr); - } - isc_managers_destroy(netmgr == NULL ? NULL : &netmgr, taskmgr == NULL ? NULL : &taskmgr, timermgr == NULL ? NULL : &timermgr); diff --git a/lib/dns/tests/dnstest.h b/lib/dns/tests/dnstest.h index 229029301a..be33ba4181 100644 --- a/lib/dns/tests/dnstest.h +++ b/lib/dns/tests/dnstest.h @@ -53,7 +53,6 @@ extern isc_task_t *maintask; extern isc_timermgr_t *timermgr; extern isc_nm_t *netmgr; extern dns_zonemgr_t *zonemgr; -extern bool loop_running; extern int ncpus; extern bool debug_mem_record;