From 98ebd125ec9752cc04bc15c275908dd14f4a5b40 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Wed, 4 Dec 2013 15:09:38 +0200 Subject: [PATCH] unit/AVDTP: Add /TP/SIG/SMG/BI-32-C test Verify that the IUT (ACP) is able to issue a get all capabilities reject response to the INT. --- unit/test-avdtp.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/unit/test-avdtp.c b/unit/test-avdtp.c index 9bea5e10e..29ec95901 100644 --- a/unit/test-avdtp.c +++ b/unit/test-avdtp.c @@ -533,7 +533,8 @@ static void discover_cb(struct avdtp *session, GSList *seps, return; } - if (g_str_equal(context->data->test_name, "/TP/SIG/SMG/BI-04-C")) { + if (g_str_equal(context->data->test_name, "/TP/SIG/SMG/BI-04-C") || + g_str_equal(context->data->test_name, "/TP/SIG/SMG/BI-32-C")) { g_assert(err != NULL); g_assert_cmpint(avdtp_error_error_code(err), ==, 0x11); context_quit(context); @@ -1056,6 +1057,11 @@ int main(int argc, char *argv[]) define_test("/TP/SIG/SMG/ESR04/BI-28-C", test_server, raw_pdu(0x00, 0x3f), raw_pdu(0x01, 0x3f)); + define_test("/TP/SIG/SMG/BI-32-C", test_client_1_3, + raw_pdu(0x30, 0x01), + raw_pdu(0x32, 0x01, 0x04, 0x00), + raw_pdu(0x40, 0x0c, 0x04), + raw_pdu(0x43, 0x0c, 0x11)); return g_test_run(); } -- 2.47.3