Adjust test after the change to TAILQ in struct prefix.
authorclaudio <claudio@openbsd.org>
Tue, 22 Mar 2022 10:57:08 +0000 (10:57 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 22 Mar 2022 10:57:08 +0000 (10:57 +0000)
regress/usr.sbin/bgpd/unittests/rde_decide_test.c

index d62287d..c0c2720 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: rde_decide_test.c,v 1.8 2022/03/03 13:10:53 claudio Exp $ */
+/*     $OpenBSD: rde_decide_test.c,v 1.9 2022/03/22 10:57:08 claudio Exp $ */
 
 /*
  * Copyright (c) 2020 Claudio Jeker <claudio@openbsd.org>
@@ -240,12 +240,12 @@ test_evaluate(struct prefix **orig, struct prefix **in, size_t nin)
                struct prefix *xp;
 
                j = 0;
-               LIST_FOREACH(xp, &dummy_re.prefix_h, entry.list.rib)
+               TAILQ_FOREACH(xp, &dummy_re.prefix_h, entry.list.rib)
                        if (which(orig, xp) != j++)
                                r = 1;
                if (r != 0) {
                        printf("bad order");
-                       LIST_FOREACH(xp, &dummy_re.prefix_h, entry.list.rib)
+                       TAILQ_FOREACH(xp, &dummy_re.prefix_h, entry.list.rib)
                                printf(" %zu", which(orig, xp));
                        printf(" FAILED\n");
                }