]> git.ipfire.org Git - thirdparty/bind9.git/commit
resolver tests: set 3MB cache size
authorColin Vidal <colin@isc.org>
Mon, 30 Mar 2026 13:37:52 +0000 (15:37 +0200)
committerColin Vidal <colin@isc.org>
Mon, 30 Mar 2026 18:41:13 +0000 (20:41 +0200)
commitd313d9d7e763db6a601cd162ef24276d5d8635d3
tree6366cffde817ef1bb02ea36b148dcb2f11010ca7
parentc64ac308ebfad718796b490eee49777509eab96a
resolver tests: set 3MB cache size

The default max-cache-size on the system test being enforced to 2MB
(from the -T switch). It means the main cache size is 6/8 of it (1/8
being reserved for ADB and 1/8 for the delegation database).

However, the minimal cache size of the main cache is 2MB, which means
that the main cache size will actually be 2MB anyway when running the system tests.

This was breaking some resolver tests were failing because when the
cache was shared and named reload, the previous cache size was, indeed,
2MB whereas the newly requested size only 6/8 of it (that happened
before the size is bumped to the minimal value).

Set the ns1 of resolver tests max cache size of 3MB, so even 6/8 of the
max cache size is more than the minimum 2MB of the main cache size,
which enable to keep the shared cached between views for this test
between reloads.
bin/tests/system/resolver/ns1/named.args [new file with mode: 0644]