]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add regression test for [GL #4987]
authorMark Andrews <marka@isc.org>
Mon, 14 Oct 2024 03:15:27 +0000 (14:15 +1100)
committerMark Andrews <marka@isc.org>
Thu, 17 Oct 2024 00:04:32 +0000 (11:04 +1100)
bin/tests/system/resolver/ns9/named.conf.in
tests/isc/quota_test.c

index 140cd26b58dbf1d9ee17357e52446addecb07042..bfc979ca6fdc1ed31b08066b2753ebd5bd4946a9 100644 (file)
@@ -19,6 +19,7 @@ options {
        listen-on { none; };
        listen-on-v6 { fd92:7065:b8e:ffff::9; };
        recursion yes;
+       recursive-clients 0; // regression test for [GL #4987]
        dnssec-validation yes;
        dual-stack-servers { fd92:7065:b8e:ffff::7; };
        qname-minimization off;
index 59e865852da078320a9ce9df74d7afee209938be..25753d59a49f4110e470a8c08be83af18395100d 100644 (file)
@@ -53,6 +53,11 @@ ISC_RUN_TEST_IMPL(isc_quota_get_set) {
        assert_int_equal(isc_quota_getused(&quota), 1);
        isc_quota_release(&quota);
        assert_int_equal(isc_quota_getused(&quota), 0);
+
+       /* Unlimited */
+       isc_quota_max(&quota, 0);
+       isc_quota_soft(&quota, 0);
+
        isc_quota_destroy(&quota);
 }