Diff between c4686d50860e18abff8bdaaa77d20d1b783801ae and 20890b9d5836aaab673216814a9035414aa2e789
Changed Files
| File | Additions | Deletions | Status |
| unit/test-avdtp.c | +7 | -0 | modified |
Full Patch
diff --git a/unit/test-avdtp.c b/unit/test-avdtp.c
index f2ef767..34820d1 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;