laforge has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33630 )

Change subject: library/RAN_Emulation: testcase.stop -> mtc.stop
......................................................................

library/RAN_Emulation: testcase.stop -> mtc.stop

Stop the MTC (main test component) on error, otherwise some tests don't
stop here and keep going forever.

MSC_Test_0-RAN(106)@7e006c664067: Unable to find to-be-destroyed IMSI in 
ImsiTable
MSC_Test_0-RAN(106)@7e006c664067: Dynamic test case error: testcase.stop
MSC_Test_0-RAN(106)@7e006c664067: setverdict(error): none -> error
MSC_Test_0-RAN(106)@7e006c664067: Final verdict of PTC: error
MSC_Test-GSUP-IPA(110)@7e006c664067: CCM Rx:{ msg_type := IPAC_MSGT_PING (0), u 
:= omit }
MSC_Test-GSUP-IPA(110)@7e006c664067: CCM Tx:{ msg_type := IPAC_MSGT_PONG (1), u 
:= omit }
MSC_Test-GSUP-IPA(110)@7e006c664067: CCM Rx:{ msg_type := IPAC_MSGT_PING (0), u 
:= omit }
MSC_Test-GSUP-IPA(110)@7e006c664067: CCM Tx:{ msg_type := IPAC_MSGT_PONG (1), u 
:= omit }
…

Change-Id: I8923975f6cb48f5f628e2ac5dc412f0f3ab97aab
---
M library/RAN_Emulation.ttcnpp
1 file changed, 30 insertions(+), 4 deletions(-)

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




diff --git a/library/RAN_Emulation.ttcnpp b/library/RAN_Emulation.ttcnpp
index 6a1f784..2fba50a 100644
--- a/library/RAN_Emulation.ttcnpp
+++ b/library/RAN_Emulation.ttcnpp
@@ -406,7 +406,8 @@
                        return;
                }
        }
-       testcase.stop("RAN Connection table full!");
+       setverdict(fail, "RAN Connection table full!");
+       mtc.stop;
 }

 private function f_conn_table_del(integer sccp_conn_id)
@@ -1449,7 +1450,8 @@
                        return;
                }
        }
-       testcase.stop("No space left in ExpectTable");
+       setverdict(fail, "No space left in ExpectTable");
+       mtc.stop;
 }

 private function f_create_imsi(hexstring imsi, OCT4 tmsi, RAN_ConnHdlr hdlr)
@@ -1463,7 +1465,8 @@
                        return;
                }
        }
-       testcase.stop("No space left in ImsiTable");
+       setverdict(fail, "No space left in ImsiTable");
+       mtc.stop;
 }

 private function f_destroy_imsi(hexstring imsi, RAN_ConnHdlr hdlr)
@@ -1477,7 +1480,8 @@
                        return;
                }
        }
-       testcase.stop("Unable to find to-be-destroyed IMSI in ImsiTable");
+       setverdict(fail, "Unable to find to-be-destroyed IMSI in ImsiTable");
+       mtc.stop;
 }

 private function f_expect_table_init()

--
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/33630
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: master
Gerrit-Change-Id: I8923975f6cb48f5f628e2ac5dc412f0f3ab97aab
Gerrit-Change-Number: 33630
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>
Gerrit-MessageType: merged

Reply via email to