]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add another broken testcase
authorEvan Hunt <each@isc.org>
Thu, 18 Apr 2024 19:01:25 +0000 (12:01 -0700)
committerEvan Hunt <each@isc.org>
Thu, 25 Apr 2024 17:29:07 +0000 (10:29 -0700)
tests/dns/qp_test.c

index d49fe674b30685229f1262c7e8af34e01c64f850..efd14703607e2441a594679f8327e5bca7406d59 100644 (file)
@@ -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