From: Evan Hunt Date: Thu, 18 Apr 2024 19:01:25 +0000 (-0700) Subject: add another broken testcase X-Git-Tag: v9.19.24~11^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1b1ca8ca405cc53e255e0fce008f8fa3a7a3656;p=thirdparty%2Fbind9.git add another broken testcase --- diff --git a/tests/dns/qp_test.c b/tests/dns/qp_test.c index d49fe674b30..efd14703607 100644 --- a/tests/dns/qp_test.c +++ b/tests/dns/qp_test.c @@ -820,6 +820,27 @@ ISC_RUN_TEST_IMPL(fixiterator) { check_predecessors(qp, check2); dns_qp_destroy(&qp); + + const char insert3[][64] = { "example.", + "key-is-13779.example.", + "key-is-14779.example.", + "key-not-13779.example.", + "key-not-14779.example.", + "" }; + i = 0; + + dns_qp_create(mctx, &string_methods, NULL, &qp); + while (insert3[i][0] != '\0') { + insert_str(qp, insert3[i++]); + } + + static struct check_predecessors check3[] = { { "key-is-21556.example.", + "key-is-14779.example.", + DNS_R_PARTIALMATCH, 2 }, + { NULL, NULL, 0, 0 } }; + + check_predecessors(qp, check3); + dns_qp_destroy(&qp); } ISC_TEST_LIST_START