summaryrefslogtreecommitdiffstats
path: root/openbsc/tests
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-01-26 11:07:24 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-01-27 08:31:03 +0100
commit3e4e58f349c201a2ed02971ef95051773fcef39b (patch)
tree3bd6a73fe8fd998f5238e699f262c0460dd4417e /openbsc/tests
parent3ee67ff5c2f9da513c77b8ab9dfc0067296dadec (diff)
gprs: Rename gprs_subscr_delete to gprs_subscr_cleanup
The old name is somewhat misleading. The function is rather preparing the subscriber for a subsequent subscr_free, that is possibly invoked by a subscr_put. It detaches the subscriber from the MM context and optionally invokes a PURGE_MS procedure. Therefore the _cleanup suffix is chosen (see mm_ctx_cleanup_free). Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests')
-rw-r--r--openbsc/tests/sgsn/sgsn_test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbsc/tests/sgsn/sgsn_test.c b/openbsc/tests/sgsn/sgsn_test.c
index 57577a440..5d142da90 100644
--- a/openbsc/tests/sgsn/sgsn_test.c
+++ b/openbsc/tests/sgsn/sgsn_test.c
@@ -269,7 +269,7 @@ static void test_subscriber(void)
OSMO_ASSERT(last_updated_subscr == s1);
/* There is no subscriber cache. Verify it */
- gprs_subscr_delete(s1);
+ gprs_subscr_cleanup(s1);
subscr_put(s1);
s1 = NULL;
sfound = gprs_subscr_get_by_imsi(imsi1);
@@ -279,7 +279,7 @@ static void test_subscriber(void)
assert_subscr(s3, imsi3);
/* Free entry 2 (GSM_SUBSCRIBER_FIRST_CONTACT is set) */
- gprs_subscr_delete(s2);
+ gprs_subscr_cleanup(s2);
subscr_put(s2);
s2 = NULL;
OSMO_ASSERT(gprs_subscr_get_by_imsi(imsi1) == NULL);
@@ -287,7 +287,7 @@ static void test_subscriber(void)
assert_subscr(s3, imsi3);
/* Try to delete entry 3 */
- gprs_subscr_delete(s3);
+ gprs_subscr_cleanup(s3);
subscr_put(s3);
s3 = NULL;
OSMO_ASSERT(gprs_subscr_get_by_imsi(imsi3) == NULL);