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 <[email protected]>
Gerrit-MessageType: newchange

Reply via email to