Patrick Williams | f52e3dd | 2024-01-26 13:04:43 -0600 | [diff] [blame] | 1 | From fb583a57f9f4ab956a09e9bb96d89aa13553bf21 Mon Sep 17 00:00:00 2001 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 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> |
Andrew Geissler | 6aa7eec | 2023-03-03 12:41:14 -0600 | [diff] [blame] | 24 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 25 | --- |
| 26 | unit/test-gatt.c | 2 +- |
| 27 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 28 | |
| 29 | diff --git a/unit/test-gatt.c b/unit/test-gatt.c |
Patrick Williams | f52e3dd | 2024-01-26 13:04:43 -0600 | [diff] [blame] | 30 | index 5e06d4e..4864d36 100644 |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 31 | --- a/unit/test-gatt.c |
| 32 | +++ b/unit/test-gatt.c |
Patrick Williams | f52e3dd | 2024-01-26 13:04:43 -0600 | [diff] [blame] | 33 | @@ -4546,7 +4546,7 @@ int main(int argc, char *argv[]) |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 34 | test_server, service_db_1, NULL, |
| 35 | raw_pdu(0x03, 0x00, 0x02), |
| 36 | raw_pdu(0xbf, 0x00), |
| 37 | - raw_pdu(0x01, 0xbf, 0x00, 0x00, 0x06)); |
| 38 | + raw_pdu()); |
| 39 | |
| 40 | define_test_server("/robustness/unkown-command", |
| 41 | test_server, service_db_1, NULL, |