From 99a50b3529a53429343f767023fe9ca42b61a90f Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 2 Dec 2015 01:15:30 +0100 Subject: gtphub_test: add some cleanup asserts. Sponsored-by: On-Waves ehi --- openbsc/tests/gtphub/gtphub_test.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbsc/tests/gtphub/gtphub_test.c') diff --git a/openbsc/tests/gtphub/gtphub_test.c b/openbsc/tests/gtphub/gtphub_test.c index fea55e03d..f5f2c8870 100644 --- a/openbsc/tests/gtphub/gtphub_test.c +++ b/openbsc/tests/gtphub/gtphub_test.c @@ -625,6 +625,11 @@ static int clear_test_hub() LVL2_ASSERT(llist_empty(&hub->to_gsns[GTPH_SIDE_GGSN][plane_idx].peers)); LVL2_ASSERT(llist_empty(&hub->to_gsns[GTPH_SIDE_SGSN][plane_idx].peers)); + LVL2_ASSERT(llist_empty(&hub->tunnels)); + LVL2_ASSERT(llist_empty(&hub->pending_deletes)); + LVL2_ASSERT(llist_empty(&hub->ggsn_lookups)); + LVL2_ASSERT(llist_empty(&hub->resolved_ggsns)); + gtphub_free(hub); return 1; } -- cgit v1.2.3