Neels Hofmeyr has uploaded this change for review. ( 
https://gerrit.osmocom.org/13169


Change subject: msc: as_clear_cmd_compl_disc: log unexpected message
......................................................................

msc: as_clear_cmd_compl_disc: log unexpected message

When receiving an unexpected BSSMAP message that fails the test, log it.

Change-Id: I5cafac3318a50567f1916ea670af55558e97bf17
---
M msc/BSC_ConnectionHandler.ttcn
1 file changed, 3 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks 
refs/changes/69/13169/1

diff --git a/msc/BSC_ConnectionHandler.ttcn b/msc/BSC_ConnectionHandler.ttcn
index 8aace29..686f474 100644
--- a/msc/BSC_ConnectionHandler.ttcn
+++ b/msc/BSC_ConnectionHandler.ttcn
@@ -785,6 +785,7 @@
 }
 /* expect a clear command */
 altstep as_clear_cmd_compl_disc(float t := 5.0) runs on BSC_ConnHdlr {
+       var PDU_BSSAP bssap;
        [] BSSAP.receive(tr_BSSMAP_ClearCommand) {
                BSSAP.send(ts_BSSMAP_ClearComplete);
                alt {
@@ -797,8 +798,8 @@
                        }
                }
                }
-       [] BSSAP.receive {
-               setverdict(fail, "Unexpected BSSMAP while waiting for 
ClearCommand");
+       [] BSSAP.receive(tr_BSSAP_BSSMAP) -> value bssap {
+               setverdict(fail, "Unexpected BSSMAP while waiting for 
ClearCommand", bssap);
                mtc.stop;
                }
 }

--
To view, visit https://gerrit.osmocom.org/13169
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I5cafac3318a50567f1916ea670af55558e97bf17
Gerrit-Change-Number: 13169
Gerrit-PatchSet: 1
Gerrit-Owner: Neels Hofmeyr <[email protected]>

Reply via email to