From 54defc8b78f782438167b42feee014e7fc5d5331 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Tue, 21 Apr 2020 12:30:11 +0200 Subject: [PATCH 1/2] Enable quota_test in Kyuafile --- lib/isc/tests/Kyuafile | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/isc/tests/Kyuafile b/lib/isc/tests/Kyuafile index 834261b321..d07b11f543 100644 --- a/lib/isc/tests/Kyuafile +++ b/lib/isc/tests/Kyuafile @@ -17,6 +17,7 @@ tap_test_program{name='netaddr_test'} tap_test_program{name='parse_test'} tap_test_program{name='pool_test'} tap_test_program{name='radix_test'} +tap_test_program{name='quota_test'} tap_test_program{name='regex_test'} tap_test_program{name='result_test'} tap_test_program{name='safe_test'} From 62f738ba48532c2720a335ab8434eeffddf0939c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Kr=C4=99cicki?= Date: Tue, 21 Apr 2020 13:33:42 +0200 Subject: [PATCH 2/2] Fix detaching the extra quotas in the quota_test --- lib/isc/tests/quota_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/isc/tests/quota_test.c b/lib/isc/tests/quota_test.c index 997b253fb2..60b66ede44 100644 --- a/lib/isc/tests/quota_test.c +++ b/lib/isc/tests/quota_test.c @@ -210,7 +210,8 @@ isc_quota_callback_test(void **state) { /* Release the quotas that we did not released in the callback */ for (i = 0; i < 5; i++) { - isc_quota_detach("as[i]); + qp = "a; + isc_quota_detach(&qp); } for (i = 6; i < 20; i++) {