diff options
author | Archie Pusaka <apusaka@chromium.org> | 2020-05-05 12:29:11 +0800 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2020-06-04 14:17:27 -0700 |
commit | 0c7e7a95df390759520c7cf9c2715ccf7a2e9ac5 (patch) | |
tree | 5ba79e9ef23499b4685d29c02e24cbddf94a046d /tools/rfcomm-tester.c | |
parent | a078a364768cf62b92c4ffaa89647dd49282981a (diff) | |
download | bluez-0c7e7a95df390759520c7cf9c2715ccf7a2e9ac5.tar.gz |
tools/l2cap-tester: Add test for waiting disconnection response
This is to test the behaviour of L2CAP channel when closed with
shut_down(sock, SHUT_WR). In this case, we should wait until we
receive a disconnection response before raising G_IO_HUP.
Diffstat (limited to 'tools/rfcomm-tester.c')
-rw-r--r-- | tools/rfcomm-tester.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/rfcomm-tester.c b/tools/rfcomm-tester.c index b20d70d58..2d3be27d8 100644 --- a/tools/rfcomm-tester.c +++ b/tools/rfcomm-tester.c @@ -548,7 +548,7 @@ static void test_connect(const void *test_data) GIOChannel *io; int sk; - bthost_add_l2cap_server(bthost, 0x0003, NULL, NULL); + bthost_add_l2cap_server(bthost, 0x0003, NULL, NULL, NULL); bthost_add_rfcomm_server(bthost, cli->server_channel, rfcomm_connect_cb, NULL); |