[MERGED] openbsc[master]: Fix nanobts_omlattr unit test

Harald Welte gerrit-no-reply at lists.osmocom.org
Wed Oct 25 22:10:03 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: Fix nanobts_omlattr unit test
......................................................................


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
---
M openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved; Verified



diff --git a/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c b/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c
index ee138b8..fc358f5 100644
--- a/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c
+++ b/openbsc/tests/nanobts_omlattr/nanobts_omlattr_test.c
@@ -200,6 +200,7 @@
 	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() */

-- 
To view, visit https://gerrit.osmocom.org/4418
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id1cd4ce8f1e03b9715e1223414918bc69499e13d
Gerrit-PatchSet: 1
Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>


More information about the gerrit-log mailing list