aboutsummaryrefslogtreecommitdiffstats
path: root/stp/STP_Tests_M3UA.ttcn
diff options
context:
space:
mode:
Diffstat (limited to 'stp/STP_Tests_M3UA.ttcn')
-rw-r--r--stp/STP_Tests_M3UA.ttcn36
1 files changed, 36 insertions, 0 deletions
diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn
index 22272f34..5f456591 100644
--- a/stp/STP_Tests_M3UA.ttcn
+++ b/stp/STP_Tests_M3UA.ttcn
@@ -685,7 +685,40 @@ testcase TC_clnt_asp_to_sg() runs on RAW_M3UA_CT {
f_clear_m3ua();
}
+/* test a rapid sequence of several INIT/SHUTDOWN before sending the first ASPUP. OS#4625 */
+private function f_TC_rapid_init_shutdown() runs on RAW_M3UA_CT {
+ //f_init_common();
+ //activate(as_m3ua_sctp());
+ //map(self:M3UA[0], system:M3UA_CODEC_PT);
+ //f_M3UA_connect(0);
+
+ /* close one M3UA connection before ever doing anything on it */
+ log("close 1");
+ f_M3UA_close(0);
+
+ /* re-open and close again */
+ log("open 2");
+ f_M3UA_connect(0);
+ log("close 2");
+ f_M3UA_close(0);
+
+ /* third re-open, now we want to send an ASPUP */
+ log("open 3");
+ f_M3UA_connect(0);
+ log("asp_up");
+ f_M3UA_asp_up(0);
+ log("end");
+}
+
+testcase TC_rapid_init_shutdown() runs on RAW_M3UA_CT {
+ log("init");
+ f_init_m3ua();
+ var integer i;
+ for (i := 0; i < 1; i := i + 1) {
+ f_TC_rapid_init_shutdown();
+ }
+}
control {
/* M3UA Tests */
@@ -721,6 +754,9 @@ control {
/* put this one last as it changes the stp side config */
execute( TC_clnt_asp_act_tmt_loadshare() );
+
+ /* put this one last as it may crash (older versions of) OsmoSTP */
+ execute( TC_rapid_init_shutdown() );
}