pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39219?usp=email )
Change subject: mgw: Improve log and teardown upon unexpected mgcp resp received
......................................................................
mgw: Improve log and teardown upon unexpected mgcp resp received
Change-Id: I233075f5a88ed7f1f7de496664cdc7281aefa900
---
M mgw/MGCP_Test.ttcn
1 file changed, 5 insertions(+), 5 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/19/39219/1
diff --git a/mgw/MGCP_Test.ttcn b/mgw/MGCP_Test.ttcn
index 84e5943..934179c 100644
--- a/mgw/MGCP_Test.ttcn
+++ b/mgw/MGCP_Test.ttcn
@@ -270,14 +270,14 @@
T.start;
alt {
[] MGCP.receive(mrt) -> value mrf { }
- [] MGCP.receive(tr_MGCP_RecvFrom_R(?)) {
- setverdict(fail, "Response didn't match template");
- mtc.stop;
+ [] MGCP.receive(tr_MGCP_RecvFrom_R(?)) -> value mrf {
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
+ log2str("Unexpected MGCP Response: ", mrf, " vs exp ",
mrt));
}
[] MGCP.receive { repeat; }
[] T.timeout {
- setverdict(fail, "Timeout waiting for response to ", cmd);
- mtc.stop;
+ Misc_Helpers.f_shutdown(__BFILE__, __LINE__, fail,
+ log2str("Timeout waiting for response to ", cmd));
}
}
T.stop;
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/39219?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I233075f5a88ed7f1f7de496664cdc7281aefa900
Gerrit-Change-Number: 39219
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>