Change in osmo-msc[master]: VLR tests: avoid leaking LAC access details

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/.

Max gerrit-no-reply at lists.osmocom.org
Tue Dec 18 14:47:55 UTC 2018


Max has submitted this change and it was merged. ( 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 unnecessary 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(-)

Approvals:
  Jenkins Builder: Verified
  Max: Looks good to me, approved



diff --git a/tests/msc_vlr/msc_vlr_test_call.c b/tests/msc_vlr/msc_vlr_test_call.c
index ef88c5a..4a4f243 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");
+	VAL_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..4e8077e 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");
+	VAL_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: merged
Gerrit-Change-Id: I4a1d7884cf47ad513d7d6fb27c5c6f1b829dff2e
Gerrit-Change-Number: 12337
Gerrit-PatchSet: 3
Gerrit-Owner: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Pau Espin Pedrol <pespin at sysmocom.de>
Gerrit-Reviewer: Stefan Sperling <stsp at stsp.name>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181218/fdcc889c/attachment.htm>


More information about the gerrit-log mailing list