aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2020-11-12 22:51:58 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2020-11-16 17:02:06 +0100
commit58de609628faca1b3c555cf673ad795ba1b8fe8a (patch)
treeb772054a81dd4e4687fe6f88600d0bb9c133857a
parent2fa1df31e6da51538933a6f9fb3f039db3dd72e5 (diff)
handover_test 2 of n: move generate_si() into create_bts()
-rw-r--r--tests/handover/handover_test.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c
index 2bb91f08b..143f206e5 100644
--- a/tests/handover/handover_test.c
+++ b/tests/handover/handover_test.c
@@ -218,6 +218,11 @@ static struct gsm_bts *create_bts()
osmo_fsm_inst_dispatch(bts->c0->ts[i].fi, TS_EV_RSL_READY, 0);
osmo_fsm_inst_dispatch(bts->c0->ts[i].fi, TS_EV_OML_READY, 0);
}
+
+ for (i = 0; i < bsc_gsmnet->num_bts; i++) {
+ if (gsm_generate_si(gsm_bts_num(bsc_gsmnet, i), SYSINFO_TYPE_2) <= 0)
+ fprintf(stderr, "Error generating SI2\n");
+ }
return bts;
}
@@ -1501,10 +1506,6 @@ int main(int argc, char **argv)
"TS(1-4) are TCH/F, TS(5-6) are TCH/H)\n", n);
for (i = 0; i < n; i++)
bts[bts_num + i] = create_bts();
- for (i = 0; i < n; i++) {
- if (gsm_generate_si(bts[bts_num + i], SYSINFO_TYPE_2) <= 0)
- fprintf(stderr, "Error generating SI2\n");
- }
bts_num += n;
test_case += 2;
} else