gtphub_test: add some cleanup asserts.

Sponsored-by: On-Waves ehi
This commit is contained in:
Neels Hofmeyr 2015-12-02 01:15:30 +01:00
parent 10fc024472
commit 99a50b3529
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}