jolly has uploaded this change for review.

View Change

Add log message for unexpected result in PIPEasp function

If the expected result is not received by the exec function, the test
case will fail with a log message of the unexpected result, rather than
waiting for the timeout.

Related: SYS#8101
Change-Id: Ic20f4b23050940348879512d6c8b78c1ae70e75d
---
M library/PIPEasp_Templates.ttcn
1 file changed, 4 insertions(+), 0 deletions(-)

git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/67/43267/1
diff --git a/library/PIPEasp_Templates.ttcn b/library/PIPEasp_Templates.ttcn
index 85a8656..738bf57 100644
--- a/library/PIPEasp_Templates.ttcn
+++ b/library/PIPEasp_Templates.ttcn
@@ -55,6 +55,10 @@

alt {
[] pt.receive(res_exp) -> value res;
+ [] pt.receive(tr_PResult(?,?,?)) -> value res {
+ setverdict(fail, "Unexpected result: ", res);
+ mtc.stop;
+ }
[time_out > 0.0] t.timeout {
setverdict(fail, "Timeout: ", cmdline);
mtc.stop;

To view, visit change 43267. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: Ic20f4b23050940348879512d6c8b78c1ae70e75d
Gerrit-Change-Number: 43267
Gerrit-PatchSet: 1
Gerrit-Owner: jolly <andreas@eversberg.eu>