Query reagarding unit test-gatt
Hi All,
I am currently adding test cases for GATT. I am unable to understand the behavior of the following scenario.
When I execute the following test case, TP/GAW/CL/BV-08-C - [Write Characteristic Descriptors - by Client]
bluez$ ./unit/test-gatt -d -p /TP/GAW/CL/BV-08-C
GATT: > 12 08 00 01 02 03 ......
GATT: < 13
Test Summary
------------
/TP/GAW/CL/BV-08-C Passed 0.002
seconds
Total: 1, Passed: 1 (100.0%), Failed: 0, Not Run: 0
Here I am able to write it successfully. But in service_db_1 declaration, 0x0008 handle is a descriptor with only read permission.
As per its definition, it should return write not permitted error. Is there any bug in gatt-client procedure or test-gatt or is this the expected behavior ?
Regards,
Gowtham Anandha Babu
Luiz Augusto von Dentz
maintainerHi Gowtham,
Quoted 18 lines · Gowtham Anandha Babu
Hi All,
I am currently adding test cases for GATT. I am unable to understand the behavior of the following scenario.
When I execute the following test case, TP/GAW/CL/BV-08-C - [Write Characteristic Descriptors - by Client]
bluez$ ./unit/test-gatt -d -p /TP/GAW/CL/BV-08-C
GATT: > 12 08 00 01 02 03 ......
GATT: < 13Test Summary
------------
/TP/GAW/CL/BV-08-C Passed 0.002
seconds
Quoted 7 lines
Total: 1, Passed: 1 (100.0%), Failed: 0, Not Run: 0
Here I am able to write it successfully. But in
service_db_1declaration,0x0008handle is a descriptor with only read permission.
As per its definition, it should return write not permitted error. Is there any bug in gatt-client procedure or test-gatt or is this the expected behavior ?
Check the raw pdu, from the client test cases the responses are self generated so it doesn't actually check what it is in the database, but we may want to change that.
Signature · 1 line
Luiz Augusto von Dentz