pespin submitted this change.
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(-)
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 change 39219. To unsubscribe, or for help writing mail filters, visit settings.