Change in osmo-ttcn3-hacks[master]: PCU_Tests: introduce TC_pcuif_info_ind_subsequent()

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
Sat Oct 10 10:30:06 UTC 2020


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

Change subject: PCU_Tests: introduce TC_pcuif_info_ind_subsequent()
......................................................................

PCU_Tests: introduce TC_pcuif_info_ind_subsequent()

This change reproduces a segfault caused by the recent regression [1].
The IUT tries to bind on BSSGP host:port that it's already bound to.

[1] Ib389925cf5c9f18951af6242c31ea70476218e9a

Change-Id: I4c3bc883d795e5d1ee5ab175ac03684924692a7c
Related: SYS#5108
---
M pcu/PCU_Tests.ttcn
1 file changed, 19 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn
index b2f8b75..035053d 100644
--- a/pcu/PCU_Tests.ttcn
+++ b/pcu/PCU_Tests.ttcn
@@ -2441,6 +2441,23 @@
 	f_shutdown(__BFILE__, __LINE__, final := true);
 }
 
+/* Check if the IUT handles subsequent INFO.ind messages */
+testcase TC_pcuif_info_ind_subsequent() runs on RAW_PCU_Test_CT {
+	var template PCUIF_info_ind info_ind := ts_PCUIF_INFO_default;
+	var PCUIF_Message pcu_msg;
+
+	/* Initialize the PCU interface abstraction */
+	f_init_raw(testcasename(), info_ind);
+
+	/* Send 16 conseqtive INFO.ind messages and check that the IUT stays alive */
+	for (var integer i := 0; i < 16; i := i + 1) {
+		BTS.send(ts_PCUIF_INFO_IND(0, info_ind));
+		f_pcuif_rx_data_req(pcu_msg);
+	}
+
+	f_shutdown(__BFILE__, __LINE__, final := true);
+}
+
 control {
 	execute( TC_pcuif_suspend() );
 	execute( TC_ta_ptcch_idle() );
@@ -2494,6 +2511,8 @@
 		execute( TC_pcuif_fh_pkt_ass_ul() );
 		execute( TC_pcuif_fh_pkt_ass_dl() );
 	}
+
+	execute( TC_pcuif_info_ind_subsequent() );
 }
 
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/20503
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: I4c3bc883d795e5d1ee5ab175ac03684924692a7c
Gerrit-Change-Number: 20503
Gerrit-PatchSet: 3
Gerrit-Owner: Vadim Yanitskiy <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201010/d863996a/attachment.htm>


More information about the gerrit-log mailing list