pespin has submitted this change. ( 
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(-)

Approvals:
  daniel: Looks good to me, but someone else must approve
  Jenkins Builder: Verified
  laforge: Looks good to me, approved




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: merged
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I233075f5a88ed7f1f7de496664cdc7281aefa900
Gerrit-Change-Number: 39219
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to