jolly has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/43267?usp=email )
Change subject: Add log message for unexpected result in PIPEasp function ......................................................................
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;