]> git.ipfire.org Git - thirdparty/bind9.git/commit
Update the isc_ht unit test to also tesh rehashing
authorOndřej Surý <ondrej@isc.org>
Wed, 16 Mar 2022 10:11:38 +0000 (11:11 +0100)
committerOndřej Surý <ondrej@isc.org>
Thu, 17 Mar 2022 07:16:24 +0000 (08:16 +0100)
commitcd52953f8a608cb5184aa33d8a8141df34a94cfd
tree39d79feb168048e3809c04472f21b71968f1fd5e
parente42cb1f198ae945fc322ffed388cd647c8c75fbf
Update the isc_ht unit test to also tesh rehashing

As incremental rehashing has been added to isc_ht implementation, we
need to test whether the rehashing works.

Update the isc_ht unit test to test:

 * preinitialized hash table large enough to hold all the elements
 * smallest hash table that fully grows to hold all the elements
 * partially preinitialized hash table that grows
 * iterating while rehashing is in progress
lib/isc/tests/ht_test.c