Change in osmo-ttcn3-hacks[laforge/stp]: stp: Add TC_rapid_init_shutdown()

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Tue Jun 23 20:05:54 UTC 2020


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/18992 )


Change subject: stp: Add TC_rapid_init_shutdown()
......................................................................

stp: Add TC_rapid_init_shutdown()

Change-Id: I3d37cd80acfaf042b60f1590ee12a0e26d8853b5
Related: OS#4625
---
M stp/STP_Tests_M3UA.ttcn
1 file changed, 36 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/92/18992/1

diff --git a/stp/STP_Tests_M3UA.ttcn b/stp/STP_Tests_M3UA.ttcn
index f6fa625..106de77 100644
--- a/stp/STP_Tests_M3UA.ttcn
+++ b/stp/STP_Tests_M3UA.ttcn
@@ -628,7 +628,40 @@
 	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 */
@@ -664,6 +697,9 @@
 
 	/* 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() );
 }
 
 

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

Gerrit-Project: osmo-ttcn3-hacks
Gerrit-Branch: laforge/stp
Gerrit-Change-Id: I3d37cd80acfaf042b60f1590ee12a0e26d8853b5
Gerrit-Change-Number: 18992
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200623/ba97493f/attachment.htm>


More information about the gerrit-log mailing list