From: Colin Vidal Date: Mon, 30 Mar 2026 13:37:52 +0000 (+0200) Subject: resolver tests: set 3MB cache size X-Git-Tag: v9.21.21~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d313d9d7e763db6a601cd162ef24276d5d8635d3;p=thirdparty%2Fbind9.git 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. --- diff --git a/bin/tests/system/resolver/ns1/named.args b/bin/tests/system/resolver/ns1/named.args new file mode 100644 index 00000000000..68b17f112df --- /dev/null +++ b/bin/tests/system/resolver/ns1/named.args @@ -0,0 +1 @@ +-m record -c named.conf -d 99 -D resolver-ns1 -g -T maxcachesize=3145728