From: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx> Test checks that maximum numbers of SEPs registered is MAX_SEID. --- unit/test-avdtp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/unit/test-avdtp.c b/unit/test-avdtp.c index 3e75c16..87c1c3a 100644 --- a/unit/test-avdtp.c +++ b/unit/test-avdtp.c @@ -578,6 +578,13 @@ static void test_server_seid(gconstpointer data) lseps = g_slist_append(lseps, sep); } + /* Now add (MAX_SEID + 1) SEP -> it shall fail */ + sep = avdtp_register_sep(AVDTP_SEP_TYPE_SINK, + AVDTP_MEDIA_TYPE_AUDIO, + 0x00, TRUE, &sep_ind, NULL, + context); + g_assert(!sep); + /* Remove all SEPs */ g_slist_free_full(lseps, unregister_sep); lseps = NULL; -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html