qt5base-lts/tests/auto/network/socket/qlocalsocket
Alex Trotsenko d9c0af92bd QLocalSocket/Unix: fix aborting the socket
According to the documentation, calling abort() should immediately
reset the socket to its initial state. This includes:

  - closing the file descriptor;
  - closing the QLocalSocket as an I/O device;
  - canceling a pending outgoing connection, if it exist;
  - reseting 'serverName' string.

So, adding a call to close() resets the state entirely.

Pick-to: 6.1 6.2
Change-Id: I9c604b5187c6300b437d7aa4c2d06db03edacf21
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
2021-07-24 11:52:30 +03:00
..
socketprocess Remove the qmake project files 2021-01-07 15:32:28 +01:00
.gitignore tst_qlocalsocket: get rid of QtScript dependency 2012-10-19 02:43:05 +02:00
BLACKLIST Android: blacklist a list of failing tests for android 2020-11-04 12:27:49 +02:00
CMakeLists.txt CMake: Regenerate projects using pro2cmake one last time 2020-12-10 11:52:30 +01:00
tst_qlocalsocket.cpp QLocalSocket/Unix: fix aborting the socket 2021-07-24 11:52:30 +03:00