aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/sgsn
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2016-07-05 09:52:52 +0200
committerHolger Freyther <holger@freyther.de>2016-07-25 00:15:53 +0000
commit14314bd808369f0da32860412acfcd775e5c7b24 (patch)
tree112de17ea15dae8a0ab62ee510c9684e188e6677 /openbsc/tests/sgsn
parentb1c227e5abbe023615c591ccaf865a3dcb9c742e (diff)
sgsn: add statistics counter for GPRS and PDP packets
Changing the test to allow still allocated block from the rate counters. Change-Id: Ie30e4c3084ee3a138d6b39bb5000234ac814e65f
Diffstat (limited to 'openbsc/tests/sgsn')
-rw-r--r--openbsc/tests/sgsn/sgsn_test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/tests/sgsn/sgsn_test.c b/openbsc/tests/sgsn/sgsn_test.c
index 1c9563436..5ee5fa47b 100644
--- a/openbsc/tests/sgsn/sgsn_test.c
+++ b/openbsc/tests/sgsn/sgsn_test.c
@@ -2429,6 +2429,7 @@ int main(int argc, char **argv)
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 @@ int main(int argc, char **argv)
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;
}