diff --git a/unit/test-avdtp.c b/unit/test-avdtp.c
index 0751a04..a065495 100644
--- a/unit/test-avdtp.c
+++ b/unit/test-avdtp.c
struct avdtp_local_sep *sep;
struct avdtp_stream *stream;
guint source;
+ guint process;
int fd;
int mtu;
gboolean pending_open;
{
struct context *context = user_data;
+ if (context->process > 0)
+ g_source_remove(context->process);
+
g_main_loop_quit(context->main_loop);
return FALSE;
return;
}
- g_idle_add(send_pdu, context);
+ context->process = g_idle_add(send_pdu, context);
}
static gboolean transport_open(struct avdtp_stream *stream)
raw_pdu(0xf0, 0x03, 0x04, 0x04, 0x01, 0x00, 0x07, 0x06,
0x00, 0x00, 0x21, 0x02, 0x02, 0x20, 0x08,
0x00));
+ define_test("/TP/SIG/SYN/BV-03-C", test_server_1_3_sink,
+ raw_pdu(0x00, 0x01),
+ raw_pdu(0x02, 0x01, 0x04, 0x08),
+ raw_pdu(0x10, 0x0c, 0x04),
+ raw_pdu(0x12, 0x0c, 0x01, 0x00, 0x07, 0x06, 0x00, 0x00,
+ 0xff, 0xff, 0x02, 0x40, 0x08, 0x00),
+ raw_pdu(0x20, 0x03, 0x04, 0x04, 0x01, 0x00, 0x07, 0x06,
+ 0x00, 0x00, 0x21, 0x02, 0x02, 0x20, 0x08,
+ 0x00),
+ raw_pdu(0x22, 0x03),
+ raw_pdu(0x00, 0x0d, 0x04, 0x00, 0x00));
return g_test_run();
}