Diff between dc14e6b3259331d4edd3490c8f00e3d13952c11c and accd43d05b786c9a9723ec29b6bb5271d10d9328

Changed Files

File Additions Deletions Status
unit/test-avrcp.c +4 -0 modified

Full Patch

diff --git a/unit/test-avrcp.c b/unit/test-avrcp.c
index 88d23f0..92c3420 100644
--- a/unit/test-avrcp.c
+++ b/unit/test-avrcp.c
@@ -189,6 +189,8 @@ static gboolean test_handler(GIOChannel *channel, GIOCondition cond,
 
 	pdu = &context->data->pdu_list[context->pdu_offset++];
 
+	g_assert(!pdu->browse);
+
 	if (cond & (G_IO_NVAL | G_IO_ERR | G_IO_HUP)) {
 		context->source = 0;
 		g_print("%s: cond %x\n", __func__, cond);
@@ -228,6 +230,8 @@ static gboolean browse_test_handler(GIOChannel *channel, GIOCondition cond,
 
 	pdu = &context->data->pdu_list[context->pdu_offset++];
 
+	g_assert(pdu->browse);
+
 	if (cond & (G_IO_NVAL | G_IO_ERR | G_IO_HUP)) {
 		context->browse_source = 0;
 		g_print("%s: cond %x\n", __func__, cond);