bind9/tests
Ondřej Surý b2dda86254 Replace isc_log_create/destroy with isc_logconfig_get()
Add isc_logconfig_get() function to get the current logconfig and use
the getter to replace most of the little dancing around setting up
logging in the tools. Thus:

    isc_log_create(mctx, &lctx, &logconfig);
    isc_log_setcontext(lctx);
    dns_log_setcontext(lctx);
    ...
    ...use lcfg...
    ...
    isc_log_destroy();

is now only:

    logconfig = isc_logconfig_get(lctx);
    ...use lcfg...

For thread-safety, isc_logconfig_get() should be surrounded by RCU read
lock, but since we never use isc_logconfig_get() in threaded context,
the only place where it is actually used (but not really needed) is
named_log_init().
2024-08-20 12:50:39 +00:00
..
bench Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
dns Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
include/tests Remove ns_query_init() cannot fail, remove the error paths 2024-07-03 09:05:51 +02:00
irs Include <inttypes.h> whenever including <cmocka.h> 2023-05-18 15:12:23 +02:00
isc Reduce the size of hashmap_nodes.h file 2024-08-15 10:05:32 +02:00
isccfg Replace isc_log_create/destroy with isc_logconfig_get() 2024-08-20 12:50:39 +00:00
libtest Change the NS_PER_SEC (and friends) from enum to static const 2024-08-19 09:08:55 +00:00
ns Remove ns_query_init() cannot fail, remove the error paths 2024-07-03 09:05:51 +02:00
.gitignore Move all the unit tests to /tests/<libname>/ 2022-05-28 14:53:02 -07:00
Makefile.am Build libtest even if CMOCKA is not available 2023-03-29 02:29:18 +00:00
unit-test-driver.sh.in Reformat shell scripts with shfmt 2023-10-26 10:23:50 +02:00