sgsn: add statistics counter for GPRS and PDP packets
Changing the test to allow still allocated block from the rate
counters.
Change-Id: Ie30e4c3084ee3a138d6b39bb5000234ac814e65f
diff --git a/openbsc/tests/sgsn/sgsn_test.c b/openbsc/tests/sgsn/sgsn_test.c
index 1c95634..5ee5fa4 100644
--- a/openbsc/tests/sgsn/sgsn_test.c
+++ b/openbsc/tests/sgsn/sgsn_test.c
@@ -2429,6 +2429,7 @@
tall_bsc_ctx = talloc_named_const(osmo_sgsn_ctx, 0, "bsc");
tall_msgb_ctx = talloc_named_const(osmo_sgsn_ctx, 0, "msgb");
+ sgsn_rate_ctr_init();
sgsn_auth_init();
gprs_subscr_init(sgsn);
@@ -2458,7 +2459,7 @@
talloc_report_full(osmo_sgsn_ctx, stderr);
OSMO_ASSERT(talloc_total_blocks(tall_msgb_ctx) == 1);
- OSMO_ASSERT(talloc_total_blocks(tall_bsc_ctx) == 1);
+ OSMO_ASSERT(talloc_total_blocks(tall_bsc_ctx) == 2);
return 0;
}