]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
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)
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]

diff --git a/bin/tests/system/resolver/ns1/named.args b/bin/tests/system/resolver/ns1/named.args
new file mode 100644 (file)
index 0000000..68b17f1
--- /dev/null
@@ -0,0 +1 @@
+-m record -c named.conf -d 99 -D resolver-ns1 -g -T maxcachesize=3145728