diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-10-09 16:41:02 +0700 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-10-10 10:30:06 +0000 |
commit | d53fb672c9aadfe683cf5ce72575248ada11fda3 (patch) | |
tree | efa9f39ab337aadbbef25717550bb124e9daae97 | |
parent | e97e3af20340ac12d954b63542da27cb1250220d (diff) |
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
-rw-r--r-- | pcu/PCU_Tests.ttcn | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pcu/PCU_Tests.ttcn b/pcu/PCU_Tests.ttcn index b2f8b756..035053d9 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() ); } |