diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c index c9f288f7e..62c01f06e 100644 --- a/tests/handover/handover_test.c +++ b/tests/handover/handover_test.c @@ -1749,6 +1749,29 @@ static char *test_case_31[] = { NULL }; +static char *test_case_32[] = { + "2", + + "Congestion check: favor moving a TCH/H that frees a half-used dyn TS completely\n" + , + "create-bts", "1", "c+s4", "dyn", "dyn", "dyn", "dyn", "dyn", "-", "-", + "set-ts-use", "0", "0", "*", "PDCH", "TCH/HH", "TCH/H-", "TCH/HH", "PDCH", "-", "-", + "meas-rep", "0","0","2","1", "30","0", "0", + "meas-rep", "0","0","3","0", "30","0", "0", + "meas-rep", "0","0","4","0", "30","0", "0", + "meas-rep", "0","0","4","1", "30","0", "0", + /* pick one to move */ + "set-min-free", "0", "TCH/H", "6", + "congestion-check", + "expect-chan", "0", "1", + "ack-chan", + /* Not so good: should move the half-used TCH/H instead of "halving" another dyn TS */ + "expect-ho", "0", "4", + "ho-complete", + "expect-ts-use", "0", "0", "*", "TCH/F", "TCH/HH", "TCH/H-", "TCH/H-", "PDCH", "-", "-", + NULL +}; + static char **test_cases[] = { test_case_0, test_case_1, @@ -1782,6 +1805,7 @@ static char **test_cases[] = { test_case_29, test_case_30, test_case_31, + test_case_32, }; static const struct log_info_cat log_categories[] = { diff --git a/tests/testsuite.at b/tests/testsuite.at index bd6f56f36..afff9c5c1 100644 --- a/tests/testsuite.at +++ b/tests/testsuite.at @@ -242,3 +242,9 @@ AT_KEYWORDS([handover]) cat $abs_srcdir/handover/handover_test.ok > expout AT_CHECK([$abs_top_builddir/tests/handover/handover_test 31], [], [expout], [ignore]) AT_CLEANUP + +AT_SETUP([handover test 32]) +AT_KEYWORDS([handover]) +cat $abs_srcdir/handover/handover_test.ok > expout +AT_CHECK([$abs_top_builddir/tests/handover/handover_test 32], [], [expout], [ignore]) +AT_CLEANUP