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
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() );
}