sccp: verify inactivity timers are not started in TC_udt_without_cr_cc
Related: OS#4343
Change-Id: I2cc5e41e33aac300d33887caed1cc3fbdffcbb17
diff --git a/sccp/SCCP_Tests_RAW.ttcn b/sccp/SCCP_Tests_RAW.ttcn
index 5996846..9be9c5c 100644
--- a/sccp/SCCP_Tests_RAW.ttcn
+++ b/sccp/SCCP_Tests_RAW.ttcn
@@ -171,11 +171,17 @@
setverdict(pass);
}
-/* Verify sccp_demo_user answers a CR with a CC for PC and SSN set up to echo back */
+/* Verify sccp_demo_user inactivty timers are not armed upon dealing with
+/* connectionless data-unit messages. Since no connection exists. */
testcase TC_udt_without_cr_cc() runs on SCCP_Test_RAW_CT {
var SCCP_PAR_Address calling, called;
+ var SCCP_MTP3_TRANSFERind rx;
var octetstring data := f_rnd_octstring(f_rnd_int(100));
+ /* Keep recommended ratio of T(iar) >= T(ias)*2, but anyway no IT
+ should be received in this case. */
+ g_demo_sccp_timer_ias := 1;
+ g_demo_sccp_timer_iar := 3;
f_init_raw(mp_sccp_cfg[0]);
f_sleep(1.0);
@@ -185,6 +191,17 @@
mp_sccp_cfg[0].sio, mp_sccp_cfg[0].sccp_service_type));
f_tx_udt_exp(calling, called, data);
+
+ /* Make sure no SCCP message is received at all, since no connection is active. */
+ timer T := int2float(g_demo_sccp_timer_iar + 1);
+ T.start;
+ alt {
+ [] MTP3.receive {
+ setverdict(fail, "Unexpected MTP/SCCP received");
+ self.stop;
+ }
+ [] T.timeout {}
+ }
setverdict(pass);
}