aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-12-02 01:15:30 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-12-03 11:44:21 +0100
commit99a50b3529a53429343f767023fe9ca42b61a90f (patch)
tree7a233844c3cb922b8666d0ebf30e27a934e90cfa
parent10fc02447279a322e1d362a31dec5c8f8bafb6f8 (diff)
gtphub_test: add some cleanup asserts.
Sponsored-by: On-Waves ehi
-rw-r--r--openbsc/tests/gtphub/gtphub_test.c5
1 files changed, 5 insertions, 0 deletions
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;
}