diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-04-01 20:55:54 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-04-11 21:39:44 +0000 |
commit | 4068ab278b66af7010c3acc73a7bb87bf651fc46 (patch) | |
tree | 096c6e858639e74703f272762dcead6df7c8df4b /tests/msc_vlr/msc_vlr_test_reject_concurrency.c | |
parent | e3d3dc6ea218a07161eeb80ae864a96bef2d8e61 (diff) |
properly receive BSSMAP Clear Complete and Iu Release Complete
When sending a BSSMAP Clear or Iu Release, do not immediately discard the conn,
but wait until a BSSMAP Clear Complete / Iu Release Complete has been received.
Hence we will no longer show in the log that an incoming Release/Clear Complete
belongs to an unknown subscriber, but will still be around to properly log the
release.
Related: OS#3122
Change-Id: Ie4c6aaba3866d6e5b98004e8870a215e8cf8ffc1
Diffstat (limited to 'tests/msc_vlr/msc_vlr_test_reject_concurrency.c')
-rw-r--r-- | tests/msc_vlr/msc_vlr_test_reject_concurrency.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/msc_vlr/msc_vlr_test_reject_concurrency.c b/tests/msc_vlr/msc_vlr_test_reject_concurrency.c index ceab109c3..cf9d8c92a 100644 --- a/tests/msc_vlr/msc_vlr_test_reject_concurrency.c +++ b/tests/msc_vlr/msc_vlr_test_reject_concurrency.c @@ -43,6 +43,7 @@ static void test_reject_2nd_conn() ms_sends_msg("050802008168000130089910070000006402"); VERBOSE_ASSERT(bssap_clear_sent, == true, "%d"); VERBOSE_ASSERT(lu_result_sent, == RES_REJECT, "%d"); + bss_sends_clear_complete(); EXPECT_CONN_COUNT(1); @@ -61,6 +62,7 @@ static void test_reject_2nd_conn() btw("LU was successful, and the conn has already been closed"); VERBOSE_ASSERT(lu_result_sent, == RES_ACCEPT, "%d"); + bss_sends_clear_complete(); EXPECT_CONN_COUNT(0); clear_vlr(); @@ -93,6 +95,7 @@ static void _normal_lu_part2() btw("LU was successful, and the conn has already been closed"); VERBOSE_ASSERT(lu_result_sent, == RES_ACCEPT, "%d"); + bss_sends_clear_complete(); EXPECT_CONN_COUNT(0); } @@ -182,8 +185,10 @@ static void _paging_resp_part2(int expect_conn_count, bool expect_clear) expect_bssap_clear(); ms_sends_msg("890106020041020000"); VERBOSE_ASSERT(dtap_tx_confirmed, == true, "%d"); - if (expect_clear) + if (expect_clear) { VERBOSE_ASSERT(bssap_clear_sent, == true, "%d"); + bss_sends_clear_complete(); + } btw("SMS is done"); EXPECT_CONN_COUNT(expect_conn_count); @@ -265,6 +270,7 @@ static void test_reject_lu_during_cm() expect_bssap_clear(); ms_sends_msg("050130089910070000006402"); VERBOSE_ASSERT(bssap_clear_sent, == true, "%d"); + bss_sends_clear_complete(); EXPECT_CONN_COUNT(0); clear_vlr(); @@ -288,6 +294,7 @@ static void test_reject_cm_during_cm() expect_bssap_clear(); ms_sends_msg("050130089910070000006402"); VERBOSE_ASSERT(bssap_clear_sent, == true, "%d"); + bss_sends_clear_complete(); EXPECT_CONN_COUNT(0); clear_vlr(); @@ -313,6 +320,7 @@ static void test_reject_paging_resp_during_cm() VERBOSE_ASSERT(bssap_clear_sent, == true, "%d"); btw("all requests serviced, conn has been released"); + bss_sends_clear_complete(); EXPECT_CONN_COUNT(0); clear_vlr(); @@ -377,6 +385,7 @@ static void test_accept_cm_during_paging_resp() expect_bssap_clear(); ms_sends_msg("050130089910070000006402"); VERBOSE_ASSERT(bssap_clear_sent, == true, "%d"); + bss_sends_clear_complete(); EXPECT_CONN_COUNT(0); clear_vlr(); |