From d53fb672c9aadfe683cf5ce72575248ada11fda3 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 9 Oct 2020 16:41:02 +0700 Subject: [PATCH] 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 --- pcu/PCU_Tests.ttcn | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn index b2f8b7563..035053d99 100644 --- a/pcu/PCU_Tests.ttcn +++ b/pcu/PCU_Tests.ttcn @@ -2441,6 +2441,23 @@ testcase TC_pcuif_fh_pkt_ass_dl() runs on RAW_PCU_Test_CT { 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 @@ control { execute( TC_pcuif_fh_pkt_ass_ul() ); execute( TC_pcuif_fh_pkt_ass_dl() ); } + + execute( TC_pcuif_info_ind_subsequent() ); }