[PATCH 4/6] lapd/test: Check for empty ACCH queue, too

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Jacob Erlbeck jerlbeck at sysmocom.de
Tue Mar 4 12:44:41 UTC 2014


This just adds a single test to verify that the ACCH queue is
actually empty.

Sponsored-by: On-Waves ehf
---
 tests/lapd/lapd_test.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/lapd/lapd_test.c b/tests/lapd/lapd_test.c
index e3d4e80..6b5cfd3 100644
--- a/tests/lapd/lapd_test.c
+++ b/tests/lapd/lapd_test.c
@@ -405,6 +405,8 @@ static void test_lapdm_polling()
 	/* verify that there is nothing more to poll */
 	rc = dequeue_prim(&bts_to_ms_channel.lapdm_dcch, &pp, "DCCH");
 	OSMO_ASSERT(rc < 0);
+	rc = dequeue_prim(&bts_to_ms_channel.lapdm_acch, &pp, "ACCH");
+	OSMO_ASSERT(rc < 0);
 
 	/* check sending an empty L3 message fails */
 	rc = lapdm_rslms_recvmsg(create_empty_msg(), &bts_to_ms_channel);
-- 
1.7.9.5





More information about the OpenBSC mailing list