summaryrefslogtreecommitdiff
path: root/unit
diff options
context:
space:
mode:
authorƁukasz Rymanowski <lukasz.rymanowski@codecoup.pl>2016-04-13 23:09:56 +0200
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2016-04-22 14:35:52 +0300
commit45f0f541422a8f8708e946e3e1ea56fc5482928f (patch)
treebcecc7abb6a7035db9c17fe224818783be95f82a /unit
parent00910a68a7d5897fc63148e6e827c5eb545c2518 (diff)
downloadbluez-45f0f541422a8f8708e946e3e1ea56fc5482928f.tar.gz
shared/gatt-server Check for ext. charact. prop. on reliable session
With this patch we make sure that reliable session is done on characteristics which does support it.
Diffstat (limited to 'unit')
-rw-r--r--unit/test-gatt.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/unit/test-gatt.c b/unit/test-gatt.c
index 03925e966..6e4dceea2 100644
--- a/unit/test-gatt.c
+++ b/unit/test-gatt.c
@@ -4437,5 +4437,19 @@ int main(int argc, char *argv[])
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff),
raw_pdu(0x01, 0x16, 0x04, 0x00, 0x03));
+ define_test_server("/robustness/no-reliable-characteristic",
+ test_server, ts_large_db_1, NULL,
+ raw_pdu(0x03, 0x00, 0x02),
+ raw_pdu(0x16, 0x82, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03),
+ raw_pdu(0x17, 0x82, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03),
+ raw_pdu(0x16, 0x25, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03),
+ raw_pdu(0x17, 0x25, 0x00, 0x00, 0x00, 0x01, 0x02, 0x03),
+ raw_pdu(0x16, 0x82, 0x00, 0x03, 0x00, 0x04, 0x05, 0x06),
+ raw_pdu(0x17, 0x82, 0x00, 0x03, 0x00, 0x04, 0x05, 0x06),
+ raw_pdu(0x16, 0x25, 0x00, 0x03, 0x00, 0x04, 0x05, 0x06),
+ raw_pdu(0x17, 0x25, 0x00, 0x03, 0x00, 0x04, 0x05, 0x06),
+ raw_pdu(0x18, 0x01),
+ raw_pdu(0x01, 0x18, 0x25, 0x00, 0x06));
+
return tester_run();
}