summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-10-25 23:58:18 +0200
committerHarald Welte <laforge@gnumonks.org>2017-10-26 00:06:39 +0200
commitf8ac21bf71548649209ed2749bf6e7317bb15c62 (patch)
tree00fb7dc84d6aa034786c8e83241f4100ca0100f4
parent5a4594614390978f7dab05f08d607c3903163cea (diff)
Fix nanobts_omlattr unit test
The test clearly fails unless bts->network is set correctly. Not sure why this hasn't shown up before? Port of osmo-bsc Change-Id I47786ed06ff610213d7a0b56d0ebf1c537cd7568 Change-Id: Id1cd4ce8f1e03b9715e1223414918bc69499e13d
-rw-r--r--openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c b/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c
index ee138b8f7..fc358f5cf 100644
--- a/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c
+++ b/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c
@@ -200,6 +200,7 @@ int main(int argc, char **argv)
gsm_bts_model_register(&bts_model_nanobts);
bts = gsm_bts_alloc_register(net, GSM_BTS_TYPE_NANOBTS, 63);
OSMO_ASSERT(bts);
+ bts->network = net;
trx = talloc_zero(ctx, struct gsm_bts_trx);
/* Parameters needed by nanobts_attr_bts_get() */