Diff between 01dd3c69b4c9812eb34b265fbcb2db2bb445781a and 6cacdffcb181587168a6fcc45e67fb41b4619223

Changed Files

File Additions Deletions Status
unit/test-gatt.c +13 -0 modified

Full Patch

diff --git a/unit/test-gatt.c b/unit/test-gatt.c
index adcadc5..4265de1 100644
--- a/unit/test-gatt.c
+++ b/unit/test-gatt.c
@@ -648,6 +648,12 @@ const struct test_step test_read_by_type_4 = {
 	.expected_att_ecode = 0x08,
 };
 
+const struct test_step test_read_by_type_5 = {
+	.handle = 0x0001,
+	.end_handle = 0xffff,
+	.expected_att_ecode = 0x05,
+};
+
 static void read_by_type_cb(bool success, uint8_t att_ecode,
 						struct bt_gatt_result *result,
 						void *user_data)
@@ -867,5 +873,12 @@ int main(int argc, char *argv[])
 			raw_pdu(0x08, 0x01, 0x00, 0xff, 0xff, 0x0d, 0x2a),
 			raw_pdu(0x01, 0x08, 0x0b, 0x00, 0x08));
 
+	define_test_att("/TP/GAR/CL/BI-10-C", test_read_by_type, &uuid_char_16,
+			&test_read_by_type_5,
+			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, 0x05));
+
 	return g_test_run();
 }