]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib, test: Add test case for ALL_NEXTHOPS_RO
authorßingen <bingen@voltanet.io>
Thu, 13 Jul 2017 13:07:12 +0000 (15:07 +0200)
committerßingen <bingen@voltanet.io>
Thu, 13 Jul 2017 13:07:12 +0000 (15:07 +0200)
Without it, tests were passing before commit 9fb47c0, so a case was
missing (the one which that commit fixes).

Signed-off-by: ßingen <bingen@voltanet.io>
tests/lib/test_nexthop_iter.c

index 156249a1cbbdd9bfe82cfdb38fa9b110a61917c9..18628ec163b7844aaa32256e1c8ee5494577258d 100644 (file)
@@ -276,6 +276,9 @@ test_run_first(void)
   nexthop_chain_add_recursive(nc);
   nexthop_chain_verify_iter(nc);
 
+  nexthop_chain_add_top(nc);
+  nexthop_chain_verify_iter(nc);
+
   nexthop_chain_free(nc);
 }