From defd948e0f30d919e9ac0be0fcf760582f06ad8c Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Wed, 16 May 2018 16:44:37 +0200 Subject: 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 --- msc/MSC_Tests.ttcn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); } -- cgit v1.2.3