summaryrefslogtreecommitdiffstats
path: root/sgsn
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-05-02 20:13:53 +0200
committerHarald Welte <laforge@gnumonks.org>2019-05-10 22:38:17 +0000
commit2fa771f90db1071ebb891ae430b82623fb1ac022 (patch)
tree4b5a41162dd125b091f72431598af4fe06e58f63 /sgsn
parentf7191679aafe7dc694874256072a58f31852c53c (diff)
SGSN_Tests: Introduce NUM_GB to avoid '3' as magic value
Diffstat (limited to 'sgsn')
-rw-r--r--sgsn/SGSN_Tests.ttcn7
1 files changed, 4 insertions, 3 deletions
diff --git a/sgsn/SGSN_Tests.ttcn b/sgsn/SGSN_Tests.ttcn
index d87c09d..6665dc0 100644
--- a/sgsn/SGSN_Tests.ttcn
+++ b/sgsn/SGSN_Tests.ttcn
@@ -84,9 +84,10 @@ type record GbInstance {
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;
type component test_CT {
var GbInstances g_gb;