Fixup unit test after change to trie_match (or-longer case)
authorclaudio <claudio@openbsd.org>
Sun, 9 Sep 2018 12:39:51 +0000 (12:39 +0000)
committerclaudio <claudio@openbsd.org>
Sun, 9 Sep 2018 12:39:51 +0000 (12:39 +0000)
regress/usr.sbin/bgpd/unittests/rde_trie_test.c

index 7b9e427..f4d3fd5 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: rde_trie_test.c,v 1.1 2018/09/07 16:10:42 claudio Exp $ */
+/*     $OpenBSD: rde_trie_test.c,v 1.2 2018/09/09 12:39:51 claudio Exp $ */
 
 /*
  * Copyright (c) 2018 Claudio Jeker <claudio@openbsd.org>
@@ -173,7 +173,7 @@ test_file(FILE *in, struct trie_head *th)
                if (!host_l(line, &prefix, &plen))
                        errx(1, "could not parse prefix \"%s\"", line);
                printf("%s ", line);
-               if (trie_match(th, &prefix, plen))
+               if (trie_match(th, &prefix, plen, 0))
                        printf("MATCH\n");
                else
                        printf("miss\n");