diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2018-07-05 17:35:03 +0200 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2018-07-24 09:54:18 +0000 |
commit | e4ff537f9baacc94242407041f30de1994316622 (patch) | |
tree | 962ab05f96641d2983012df8ac80b03098cc81e4 /library/RSL_Emulation.ttcn | |
parent | fcf27c9f24a2a9e636c5d9006f732b9bcbf0cea8 (diff) |
library: Ensure setverdict(fail) is followed by mtc.stop
This will prevent subsequent failures from overwriting the verdict so we
can easily see the root cause of the test failure.
Using testcase.stop instead for errors internal to our test
infrastructure to mark them as test errors instead of failed.
Change-Id: Idc6819aaf0b01e70c38fad828dd44dcec6bdd778
Diffstat (limited to 'library/RSL_Emulation.ttcn')
-rw-r--r-- | library/RSL_Emulation.ttcn | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/library/RSL_Emulation.ttcn b/library/RSL_Emulation.ttcn index 325f22e9..3c035e90 100644 --- a/library/RSL_Emulation.ttcn +++ b/library/RSL_Emulation.ttcn @@ -90,11 +90,11 @@ private function f_rx_or_fail(template RSL_Message exp_rx) runs on RSL_DchanHdlr } [] RSL.receive { setverdict(fail, "Unexpected RSL message on DCHAN"); - self.stop; + mtc.stop; } [] T.timeout { setverdict(fail, "Timeout waiting for RSL on DCHAN"); - self.stop; + mtc.stop; } } /* never reached */ @@ -361,7 +361,7 @@ function main(boolean bts_role := true) runs on RSL_Emulation_CT { cid := f_cid_by_ra_fn(ra, fn); if (cid == -1) { setverdict(fail, "IMM ASS for unknown DChan"); - self.stop; + mtc.stop; } /* update client with trx_nr */ ConnectionTable[cid].trx_nr := f_trx_by_streamId(rx_rsl.streamId); @@ -421,12 +421,13 @@ function main(boolean bts_role := true) runs on RSL_Emulation_CT { CLIENT_PT.send(rx_rsl.rsl) to ConnectionTable[cid].comp_ref; } else { setverdict(fail, "RSL for unknown Dchan"); + mtc.stop; } } [not dchan_suspended] IPA_PT.receive { setverdict(fail, "Received unknown primitive from IPA"); - self.stop; + mtc.stop; } [bts_role] CLIENT_PT.receive(RSLDC_ChanRqd:?) -> value chan_rqd sender vc_conn { |