Diff between 94feb717f7ea3ac1205cc4e4a39a43551c68dbd4 and 47c5c9441ad72beef7612bcff28c65e93c6c4dae

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 1c23ede..c138b63 100644
--- a/unit/test-gatt.c
+++ b/unit/test-gatt.c
@@ -698,6 +698,13 @@ const struct test_step test_multiple_read_1 = {
 	.length = 0x03
 };
 
+const struct test_step test_multiple_read_2 = {
+	.handle = 0x0003,
+	.end_handle = 0x0007,
+	.func = test_multiple_read,
+	.expected_att_ecode = 0x02
+};
+
 static void read_by_type_cb(bool success, uint8_t att_ecode,
 						struct bt_gatt_result *result,
 						void *user_data)
@@ -937,5 +944,11 @@ int main(int argc, char *argv[])
 			raw_pdu(0x0e, 0x03, 0x00, 0x07, 0x00),
 			raw_pdu(0x0f, 0x01, 0x02, 0x03));
 
+	define_test_client("/TP/GAR/CL/BI-18-C", test_client, service_data_1,
+			&test_multiple_read_2,
+			SERVICE_DATA_1_PDU,
+			raw_pdu(0x0e, 0x03, 0x00, 0x07, 0x00),
+			raw_pdu(0x01, 0x0e, 0x03, 0x00, 0x02));
+
 	return g_test_run();
 }