Change in osmo-pcu[master]: tests: ms: Pass correct pointer in constructor instead of NULL

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Oct 26 16:37:33 UTC 2020


pespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/20915 )

Change subject: tests: ms: Pass correct pointer in constructor instead of NULL
......................................................................

tests: ms: Pass correct pointer in constructor instead of NULL

The BTS field will be used in code paths after next patch changes,
otherwise the test fails accessing the NULL pointer.

Change-Id: I5098292bdafa9f4f70fef1a053b80a33deca722c
---
M tests/ms/MsTest.cpp
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved



diff --git a/tests/ms/MsTest.cpp b/tests/ms/MsTest.cpp
index 05b1da4..8ee3024 100644
--- a/tests/ms/MsTest.cpp
+++ b/tests/ms/MsTest.cpp
@@ -369,7 +369,7 @@
 	gprs_rlcmac_ul_tbf *ul_tbf;
 	BTS the_bts;
 	GprsMs *ms, *ms_tmp;
-	GprsMsStorage store(NULL);
+	GprsMsStorage store(&the_bts);
 
 	printf("=== start %s ===\n", __func__);
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/20915
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I5098292bdafa9f4f70fef1a053b80a33deca722c
Gerrit-Change-Number: 20915
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201026/669fae9e/attachment.htm>


More information about the gerrit-log mailing list