Max has uploaded this change for review. ( https://gerrit.osmocom.org/12337
Change subject: VLR tests: avoid leaking LAC access details ...................................................................... VLR tests: avoid leaking LAC access details Avoid leaking details on accessing data structure for LAC value into test output: that's irrelevant clutter which forces unnucessary test output modifications. Change-Id: I4a1d7884cf47ad513d7d6fb27c5c6f1b829dff2e --- M tests/msc_vlr/msc_vlr_test_call.c M tests/msc_vlr/msc_vlr_test_call.err M tests/msc_vlr/msc_vlr_test_ss.c M tests/msc_vlr/msc_vlr_test_ss.err 4 files changed, 9 insertions(+), 9 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-msc refs/changes/37/12337/1 diff --git a/tests/msc_vlr/msc_vlr_test_call.c b/tests/msc_vlr/msc_vlr_test_call.c index ef88c5a..83bc84b 100644 --- a/tests/msc_vlr/msc_vlr_test_call.c +++ b/tests/msc_vlr/msc_vlr_test_call.c @@ -154,7 +154,7 @@ vsub = vlr_subscr_find_by_imsi(net->vlr, IMSI); VERBOSE_ASSERT(vsub != NULL, == true, "%d"); VERBOSE_ASSERT(strcmp(vsub->imsi, IMSI), == 0, "%d"); - VERBOSE_ASSERT(vsub->lac, == 23, "%u"); + V_ASSERT("LAC", vsub->lac, == 23, "%u"); vlr_subscr_put(vsub); } diff --git a/tests/msc_vlr/msc_vlr_test_call.err b/tests/msc_vlr/msc_vlr_test_call.err index 481a2db..db0d58c 100644 --- a/tests/msc_vlr/msc_vlr_test_call.err +++ b/tests/msc_vlr/msc_vlr_test_call.err @@ -175,7 +175,7 @@ DREF VLR subscr MSISDN:42342 usage increases to: 2 vsub != NULL == 1 strcmp(vsub->imsi, IMSI) == 0 - vsub->lac == 23 + LAC == 23 DREF VLR subscr MSISDN:42342 usage decreases to: 1 --- - after a while, a new conn sends a CM Service Request. VLR responds with Auth Req, 2nd auth vector @@ -555,7 +555,7 @@ DREF VLR subscr MSISDN:42342 usage increases to: 2 vsub != NULL == 1 strcmp(vsub->imsi, IMSI) == 0 - vsub->lac == 23 + LAC == 23 DREF VLR subscr MSISDN:42342 usage decreases to: 1 --- - after a while, MNCC asks us to setup a call, causing Paging @@ -934,7 +934,7 @@ DREF VLR subscr MSISDN:42342 usage increases to: 2 vsub != NULL == 1 strcmp(vsub->imsi, IMSI) == 0 - vsub->lac == 23 + LAC == 23 DREF VLR subscr MSISDN:42342 usage decreases to: 1 --- - after a while, MNCC asks us to setup a call, causing Paging @@ -1279,7 +1279,7 @@ DREF VLR subscr MSISDN:42342 usage increases to: 2 vsub != NULL == 1 strcmp(vsub->imsi, IMSI) == 0 - vsub->lac == 23 + LAC == 23 DREF VLR subscr MSISDN:42342 usage decreases to: 1 --- - after a while, a new conn sends a CM Service Request. VLR responds with Auth Req, 2nd auth vector @@ -1621,7 +1621,7 @@ DREF VLR subscr MSISDN:42342 usage increases to: 2 vsub != NULL == 1 strcmp(vsub->imsi, IMSI) == 0 - vsub->lac == 23 + LAC == 23 DREF VLR subscr MSISDN:42342 usage decreases to: 1 --- - after a while, a new conn sends a CM Service Request. VLR responds with Auth Req, 2nd auth vector diff --git a/tests/msc_vlr/msc_vlr_test_ss.c b/tests/msc_vlr/msc_vlr_test_ss.c index 34aa634..d8167bd 100644 --- a/tests/msc_vlr/msc_vlr_test_ss.c +++ b/tests/msc_vlr/msc_vlr_test_ss.c @@ -68,7 +68,7 @@ vsub = vlr_subscr_find_by_imsi(net->vlr, IMSI); VERBOSE_ASSERT(vsub != NULL, == true, "%d"); VERBOSE_ASSERT(strcmp(vsub->imsi, IMSI), == 0, "%d"); - VERBOSE_ASSERT(vsub->lac, == 23, "%u"); + V_ASSERT("LAC", vsub->lac, == 23, "%u"); vlr_subscr_put(vsub); bss_sends_clear_complete(); diff --git a/tests/msc_vlr/msc_vlr_test_ss.err b/tests/msc_vlr/msc_vlr_test_ss.err index fe869ad..1d4a0c6 100644 --- a/tests/msc_vlr/msc_vlr_test_ss.err +++ b/tests/msc_vlr/msc_vlr_test_ss.err @@ -91,7 +91,7 @@ DREF VLR subscr MSISDN:46071 usage increases to: 3 vsub != NULL == 1 strcmp(vsub->imsi, IMSI) == 0 - vsub->lac == 23 + LAC == 23 DREF VLR subscr MSISDN:46071 usage decreases to: 2 - BSS sends BSSMAP Clear Complete DREF MSISDN:46071: MSC conn use - release == 0 (0x0: ) @@ -287,7 +287,7 @@ DREF VLR subscr MSISDN:46071 usage increases to: 3 vsub != NULL == 1 strcmp(vsub->imsi, IMSI) == 0 - vsub->lac == 23 + LAC == 23 DREF VLR subscr MSISDN:46071 usage decreases to: 2 - BSS sends BSSMAP Clear Complete DREF MSISDN:46071: MSC conn use - release == 0 (0x0: ) -- To view, visit https://gerrit.osmocom.org/12337 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-msc Gerrit-Branch: master Gerrit-MessageType: newchange Gerrit-Change-Id: I4a1d7884cf47ad513d7d6fb27c5c6f1b829dff2e Gerrit-Change-Number: 12337 Gerrit-PatchSet: 1 Gerrit-Owner: Max <msur...@sysmocom.de>