pespin has submitted this change. (
https://gerrit.osmocom.org/c/osmo-pcu/+/28077 )
Change subject: TbfTest: Reset MS timeout to 0 in test_tbf_dl_llc_loss()
......................................................................
TbfTest: Reset MS timeout to 0 in test_tbf_dl_llc_loss()
The timeout is set to a high value to avoid freeing the MS during main
loop iteration. Let's set it back to 0 to have a common free path in
test infrastructure.
Change-Id: I6dc4765163fde1a46574b49f3185aea65391e0d0
---
M tests/tbf/TbfTest.cpp
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
fixeria: Looks good to me, approved
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp
index 585496a..116b234 100644
--- a/tests/tbf/TbfTest.cpp
+++ b/tests/tbf/TbfTest.cpp
@@ -622,6 +622,8 @@
fprintf(stderr, "=== end %s ===\n", __func__);
+ /* Restore MS release timeout to 0 to make sure it is freed immediately: */
+ ms_set_timeout(ms, 0);
TALLOC_FREE(the_pcu);
}
--
To view, visit
https://gerrit.osmocom.org/c/osmo-pcu/+/28077
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I6dc4765163fde1a46574b49f3185aea65391e0d0
Gerrit-Change-Number: 28077
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <pespin(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: pespin <pespin(a)sysmocom.de>
Gerrit-MessageType: merged