Change in osmo-bsc[master]: handover_test: safeguard against unhandled chan req

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/.

neels gerrit-no-reply at lists.osmocom.org
Tue Jan 5 22:28:49 UTC 2021


neels has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/21981 )


Change subject: handover_test: safeguard against unhandled chan req
......................................................................

handover_test: safeguard against unhandled chan req

Change-Id: Ib0d5c4647af23e6729cc19e98b1870cdde2fe994
---
M tests/handover/handover_test.c
1 file changed, 7 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/81/21981/1

diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c
index e3ccb64..3747bd8 100644
--- a/tests/handover/handover_test.c
+++ b/tests/handover/handover_test.c
@@ -704,8 +704,14 @@
 	switch (dh->c.msg_type) {
 	case RSL_MT_CHAN_ACTIV:
 		rc = parse_chan_act(lchan, dh->data);
-		if (rc == 0)
+		if (rc == 0) {
+			if (got_chan_req) {
+				fprintf(stderr, "Test script is erratic: a channel is requested"
+					" while a previous channel request is still unhandled\n");
+				exit(1);
+			}
 			got_chan_req = 1;
+		}
 		break;
 	case RSL_MT_RF_CHAN_REL:
 		rc = parse_chan_rel(lchan, dh->data);

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

Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Ib0d5c4647af23e6729cc19e98b1870cdde2fe994
Gerrit-Change-Number: 21981
Gerrit-PatchSet: 1
Gerrit-Owner: neels <nhofmeyr at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210105/feb3015b/attachment.htm>


More information about the gerrit-log mailing list