diff options
Diffstat (limited to 'tests/lapd')
-rw-r--r-- | tests/lapd/lapd_test.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/lapd/lapd_test.c b/tests/lapd/lapd_test.c index 1f986bc8..37c0db8d 100644 --- a/tests/lapd/lapd_test.c +++ b/tests/lapd/lapd_test.c @@ -344,6 +344,10 @@ static void test_lapdm_polling() /* clean up */ lapdm_channel_exit(&bts_to_ms_channel); lapdm_channel_exit(&ms_to_bts_channel); + + /* Check if exit is idempotent */ + lapdm_channel_exit(&bts_to_ms_channel); + lapdm_channel_exit(&ms_to_bts_channel); } static void test_lapdm_early_release() @@ -372,6 +376,9 @@ static void test_lapdm_early_release() /* clean up */ lapdm_channel_exit(&bts_to_ms_channel); + + /* Check if exit is idempotent */ + lapdm_channel_exit(&bts_to_ms_channel); } static void test_lapdm_contention_resolution() @@ -415,6 +422,9 @@ static void test_lapdm_contention_resolution() /* clean up */ lapdm_channel_exit(&bts_to_ms_channel); + + /* idempotent */ + lapdm_channel_exit(&bts_to_ms_channel); } int main(int argc, char **argv) |