Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From 61e741654cc2eb167bca212a3bb2ba8f3ba280c1 Mon Sep 17 00:00:00 2001 |
| 2 | From: Mingli Yu <Mingli.Yu@windriver.com> |
| 3 | Date: Fri, 24 Aug 2018 12:04:03 +0800 |
| 4 | Subject: [PATCH] test-gatt: Fix hung issue |
| 5 | |
| 6 | The below test hangs infinitely |
| 7 | $ unit/test-gatt -p /robustness/unkown-request -d |
| 8 | /robustness/unkown-request - init |
| 9 | /robustness/unkown-request - setup |
| 10 | /robustness/unkown-request - setup complete |
| 11 | /robustness/unkown-request - run |
| 12 | GATT: < 02 17 00 ... |
| 13 | bt_gatt_server:MTU exchange complete, with MTU: 23 |
| 14 | GATT: > 03 00 02 ... |
| 15 | PDU: = 03 00 02 ... |
| 16 | GATT: < bf 00 |
| 17 | |
| 18 | Actually, the /robustness/unkown-request test does |
| 19 | no action. |
| 20 | |
| 21 | Upstream-Status: Submitted [https://marc.info/?l=linux-bluetooth&m=153508881804635&w=2] |
| 22 | |
| 23 | Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> |
| 24 | --- |
| 25 | unit/test-gatt.c | 2 +- |
| 26 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 27 | |
| 28 | diff --git a/unit/test-gatt.c b/unit/test-gatt.c |
| 29 | index c7e28f8..b57373b 100644 |
| 30 | --- a/unit/test-gatt.c |
| 31 | +++ b/unit/test-gatt.c |
| 32 | @@ -4463,7 +4463,7 @@ int main(int argc, char *argv[]) |
| 33 | test_server, service_db_1, NULL, |
| 34 | raw_pdu(0x03, 0x00, 0x02), |
| 35 | raw_pdu(0xbf, 0x00), |
| 36 | - raw_pdu(0x01, 0xbf, 0x00, 0x00, 0x06)); |
| 37 | + raw_pdu()); |
| 38 | |
| 39 | define_test_server("/robustness/unkown-command", |
| 40 | test_server, service_db_1, NULL, |
| 41 | -- |
| 42 | 2.7.4 |
| 43 | |