diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2018-05-16 16:44:37 +0200 |
---|---|---|
committer | Philipp Maier <pmaier@sysmocom.de> | 2018-05-16 17:55:33 +0200 |
commit | defd948e0f30d919e9ac0be0fcf760582f06ad8c (patch) | |
tree | c793d467b6f84053f6943b6b33a0e1b73c9701e2 | |
parent | d1f4095df8d8591c938a1bd8bf67d9b42f74b58c (diff) |
MSC_Tests: fix iterator in f_init()
With f_init(), the user has the option to specifiy how many bsc
instances should be created. A for loop then iterates over the
prepared configurations and calls f_bssap_init(). The first
parameter g_bssap is tied to index 0 constantly but should be
tied to the iterator i.
- use i instad of 0 as iterator for g_bssap
Change-Id: I490bab70224d236ab576a2ea3863f6d0afd5f22a
-rw-r--r-- | msc/MSC_Tests.ttcn | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/msc/MSC_Tests.ttcn b/msc/MSC_Tests.ttcn index 1ede8e64..edaa61bc 100644 --- a/msc/MSC_Tests.ttcn +++ b/msc/MSC_Tests.ttcn @@ -227,7 +227,7 @@ function f_init(integer num_bsc := 1) runs on MTC_CT { for (var integer i := 0; i < num_bsc; i := i + 1) { if (isbound(mp_bssap_cfg[i])) { - f_bssap_init(g_bssap[0], mp_bssap_cfg[i], "MSC_Test_" & int2str(i), BSC_BssmapOps); + f_bssap_init(g_bssap[i], mp_bssap_cfg[i], "MSC_Test_" & int2str(i), BSC_BssmapOps); } else { setverdict(fail, "missing BSSAP configuration"); } |