aboutsummaryrefslogtreecommitdiffstats
path: root/sccp
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-01-21 12:58:48 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-01-21 14:22:15 +0100
commit1269b1b4c6165ee813edc391b15dd30c493d8656 (patch)
tree7605ab21a94d517c6ffd938c1c4e3193a91655e1 /sccp
parent392eaf32fec2d16f0658817ef02edfea231110a1 (diff)
sccp: verify inactivity timers are not started in TC_udt_without_cr_cc
Diffstat (limited to 'sccp')
-rw-r--r--sccp/SCCP_Tests_RAW.ttcn19
1 files changed, 18 insertions, 1 deletions
diff --git a/sccp/SCCP_Tests_RAW.ttcn b/sccp/SCCP_Tests_RAW.ttcn
index 5996846c..9be9c5ce 100644
--- a/sccp/SCCP_Tests_RAW.ttcn
+++ b/sccp/SCCP_Tests_RAW.ttcn
@@ -171,11 +171,17 @@ testcase TC_cr_cc() runs on SCCP_Test_RAW_CT {
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 @@ testcase TC_udt_without_cr_cc() runs on SCCP_Test_RAW_CT {
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);
}