diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-02-28 15:54:03 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-03-04 13:34:38 +0100 |
commit | 7d5f17aa2149d67fb709ea44007c207431aeedc7 (patch) | |
tree | ca3393754e68d24187bce1e960dd0f6487242a7b /tests | |
parent | c893c2233ad167585b4aa7e4246c2255e32c9734 (diff) |
lapd/test: Check for empty ACCH queue, too
This just adds a single test to verify that the ACCH queue is
actually empty.
Sponsored-by: On-Waves ehf
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lapd/lapd_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lapd/lapd_test.c b/tests/lapd/lapd_test.c index e3d4e80e..6b5cfd36 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); |