summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorßingen <bingen@voltanet.io>2017-07-13 15:07:12 +0200
committerßingen <bingen@voltanet.io>2017-07-13 15:07:12 +0200
commit97ba3968a09fc5182687ebc73b81c75b014ddfd7 (patch)
tree498d2407699dfe33f71eb12a8f9712027695fbf7 /tests
parente3054ee94fc010095262caba2305e82ecbca7597 (diff)
lib, test: Add test case for ALL_NEXTHOPS_RO
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/test_nexthop_iter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/test_nexthop_iter.c b/tests/lib/test_nexthop_iter.c
index 156249a1cb..18628ec163 100644
--- a/tests/lib/test_nexthop_iter.c
+++ b/tests/lib/test_nexthop_iter.c
@@ -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);
}