aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-05-31 01:56:20 +0700
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-05-31 02:14:28 +0700
commit4f3a64182e823be6071eb891dc41dfc14dc7c5cd (patch)
treeaedb5b36776e17213953ca70cbcd852b10eafa17
parent01f530bce48695ea42f95422b629bfd82b748c8a (diff)
handover_test: use 'unknown' BTS type instead of 'sysmobts'
This unit test does not really need a BTS of such specific type. Change-Id: Id676042518d06e94a9fb20112334280e2b91074b
-rw-r--r--include/osmocom/bsc/bss.h1
-rw-r--r--tests/handover/Makefile.am2
-rw-r--r--tests/handover/handover_test.c5
3 files changed, 5 insertions, 3 deletions
diff --git a/include/osmocom/bsc/bss.h b/include/osmocom/bsc/bss.h
index ecb68d627..b8945db50 100644
--- a/include/osmocom/bsc/bss.h
+++ b/include/osmocom/bsc/bss.h
@@ -11,6 +11,7 @@ extern int bsc_shutdown_net(struct gsm_network *net);
/* register all supported BTS */
extern int bts_init(void);
+extern int bts_model_unknown_init(void);
extern int bts_model_bs11_init(void);
extern int bts_model_rbs2k_init(void);
extern int bts_model_nanobts_init(void);
diff --git a/tests/handover/Makefile.am b/tests/handover/Makefile.am
index 84865a06d..fcd171b21 100644
--- a/tests/handover/Makefile.am
+++ b/tests/handover/Makefile.am
@@ -59,7 +59,7 @@ handover_test_LDADD = \
$(top_builddir)/src/osmo-bsc/bsc_vty.o \
$(top_builddir)/src/osmo-bsc/bts_ipaccess_nanobts.o \
$(top_builddir)/src/osmo-bsc/bts_ipaccess_nanobts_omlattr.o \
- $(top_builddir)/src/osmo-bsc/bts_sysmobts.o \
+ $(top_builddir)/src/osmo-bsc/bts_unknown.o \
$(top_builddir)/src/osmo-bsc/chan_alloc.o \
$(top_builddir)/src/osmo-bsc/codec_pref.o \
$(top_builddir)/src/osmo-bsc/gsm_04_08_rr.o \
diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c
index bdc18c3eb..b08e2a32e 100644
--- a/tests/handover/handover_test.c
+++ b/tests/handover/handover_test.c
@@ -178,7 +178,7 @@ static struct gsm_bts *create_bts(int arfcn)
struct e1inp_sign_link *rsl_link;
int i;
- bts = bsc_bts_alloc_register(bsc_gsmnet, GSM_BTS_TYPE_OSMOBTS, 0x3f);
+ bts = bsc_bts_alloc_register(bsc_gsmnet, GSM_BTS_TYPE_UNKNOWN, 0x3f);
if (!bts) {
printf("No resource for bts1\n");
return NULL;
@@ -1446,7 +1446,8 @@ int main(int argc, char **argv)
ho_set_hodec2_penalty_failed_ho(bsc_gsmnet->ho, 60);
ho_set_hodec2_penalty_failed_as(bsc_gsmnet->ho, 60);
- bts_model_sysmobts_init();
+ /* We don't really need any specific model here */
+ bts_model_unknown_init();
test_case = test_cases[test_case_i];