This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/26167 ) Change subject: tests/alloc: Extend test_bts_pch_timer() to validate MI type TMSI ...................................................................... tests/alloc: Extend test_bts_pch_timer() to validate MI type TMSI Change-Id: I3673d387fa735b54fbc137ffaa18af581fa1b85a --- M tests/alloc/AllocTest.cpp M tests/alloc/AllocTest.err 2 files changed, 8 insertions(+), 0 deletions(-) Approvals: laforge: Looks good to me, but someone else must approve fixeria: Looks good to me, approved Jenkins Builder: Verified diff --git a/tests/alloc/AllocTest.cpp b/tests/alloc/AllocTest.cpp index cd9c7bc..1f2bbda 100644 --- a/tests/alloc/AllocTest.cpp +++ b/tests/alloc/AllocTest.cpp @@ -807,9 +807,12 @@ { struct gprs_rlcmac_bts *bts = bts_alloc(the_pcu, 0); struct osmo_mobile_identity mi_imsi1, mi_imsi2; + struct osmo_mobile_identity mi_tmsi1; mi_imsi1.type = mi_imsi2.type = GSM_MI_TYPE_IMSI; + mi_tmsi1.type = GSM_MI_TYPE_TMSI; OSMO_STRLCPY_ARRAY(mi_imsi1.imsi, "1234"); OSMO_STRLCPY_ARRAY(mi_imsi2.imsi, "5678"); + mi_tmsi1.tmsi = 987654321; fprintf(stderr, "Testing bts_pch_timer dealloc on bts dealloc\n"); log_set_category_filter(osmo_stderr_target, DPCU, 1, LOGL_DEBUG); @@ -817,6 +820,8 @@ fprintf(stderr, "Starting PCH timer for 2 IMSI\n"); bts_pch_timer_start(bts, &mi_imsi1, mi_imsi1.imsi); bts_pch_timer_start(bts, &mi_imsi2, mi_imsi2.imsi); + fprintf(stderr, "Starting PCH timer for 1 TMSI\n"); + bts_pch_timer_start(bts, &mi_tmsi1, "6666"); fprintf(stderr, "Deallocating BTS, expecting the PCH timer to be stopped and deallocated\n"); talloc_free(bts); diff --git a/tests/alloc/AllocTest.err b/tests/alloc/AllocTest.err index 53e2edd..1f86336 100644 --- a/tests/alloc/AllocTest.err +++ b/tests/alloc/AllocTest.err @@ -501221,6 +501221,9 @@ Starting PCH timer for 2 IMSI PCH paging timer started for MI=IMSI-1234 IMSI=1234 PCH paging timer started for MI=IMSI-5678 IMSI=5678 +Starting PCH timer for 1 TMSI +PCH paging timer started for MI=TMSI-0x3ADE68B1 IMSI=6666 Deallocating BTS, expecting the PCH timer to be stopped and deallocated PCH paging timer stopped for IMSI=1234 PCH paging timer stopped for IMSI=5678 +PCH paging timer stopped for IMSI=6666 -- To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/26167 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-pcu Gerrit-Branch: master Gerrit-Change-Id: I3673d387fa735b54fbc137ffaa18af581fa1b85a Gerrit-Change-Number: 26167 Gerrit-PatchSet: 4 Gerrit-Owner: pespin <pespin at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de> Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-Reviewer: pespin <pespin at sysmocom.de> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211108/50f27349/attachment.htm>