Change in osmo-ttcn3-hacks[master]: SGSN_Tests: Introduce NUM_GB to avoid '3' as magic value

Harald Welte gerrit-no-reply at lists.osmocom.org
Thu May 2 23:44:51 UTC 2019


Harald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/13860


Change subject: SGSN_Tests: Introduce NUM_GB to avoid '3' as magic value
......................................................................

SGSN_Tests: Introduce NUM_GB to avoid '3' as magic value

Change-Id: I28b7dd26c5c129ec41c6349de9ddc9ef0ffee8ac
---
M sgsn/SGSN_Tests.ttcn
1 file changed, 4 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/60/13860/1

diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index 9f7e49d..d25b20b 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -105,9 +105,10 @@
 	BssgpConfig cfg
 };
 
-type record length(3) of GbInstance GbInstances;
-type record length(3) of NSConfiguration NSConfigurations;
-type record length(3) of BssgpCellId BssgpCellIds;
+const integer NUM_GB := 3;
+type record length(NUM_GB) of GbInstance GbInstances;
+type record length(NUM_GB) of NSConfiguration NSConfigurations;
+type record length(NUM_GB) of BssgpCellId BssgpCellIds;
 
 const integer NUM_RNC := 1;
 type record of RAN_Configuration RAN_Configurations;

-- 
To view, visit https://gerrit.osmocom.org/13860
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I28b7dd26c5c129ec41c6349de9ddc9ef0ffee8ac
Gerrit-Change-Number: 13860
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190502/b494d546/attachment.html>


More information about the gerrit-log mailing list