Verify Generic Attribute Profile client behavior when the Read Using Characteristic UUID procedure fails due to attribute not found. --- unit/test-gatt.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/unit/test-gatt.c b/unit/test-gatt.c index b90d7be..d68c2c7 100644 --- a/unit/test-gatt.c +++ b/unit/test-gatt.c @@ -636,6 +636,12 @@ const struct test_step test_read_by_type_2 = { .expected_att_ecode = 0x02, }; +const struct test_step test_read_by_type_3 = { + .handle = 0x0001, + .end_handle = 0xffff, + .expected_att_ecode = 0x0a, +}; + static void read_by_type_cb(bool success, uint8_t att_ecode, struct bt_gatt_result *result, void *user_data) @@ -841,5 +847,12 @@ int main(int argc, char *argv[]) raw_pdu(0x08, 0x01, 0x00, 0xff, 0xff, 0x0d, 0x2a), raw_pdu(0x01, 0x08, 0x0b, 0x00, 0x02)); + define_test_att("/TP/GAR/CL/BI-07-C", test_read_by_type, &uuid_char_16, + &test_read_by_type_3, + raw_pdu(0x02, 0x00, 0x02), + raw_pdu(0x03, 0x00, 0x02), + raw_pdu(0x08, 0x01, 0x00, 0xff, 0xff, 0x0d, 0x2a), + raw_pdu(0x01, 0x08, 0x0b, 0x00, 0x0a)); + return g_test_run(); } -- 1.9.3 -- 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