qt5base-lts/tests/auto/network/socket
Volker Hilsheimer cc32226e64 Windows: handle errors correctly when connecting to unreachable host
The previous code handled only some error codes, in a very inefficient
way, for some code paths. This change standardizes error handling using
a helper function that maps winsock WSAE* codes to Qt error codes.

The test for connecting to unreachable hosts or ports is now more
generic, and enabled on Windows, where it passes in local tests,
but dependency on network configuration still makes it fragile,
so ignoring some failures without completely skipping the test.

[ChangeLog][Network][Windows] Correctly emit errors when trying to
reach unreachable hosts or services

Change-Id: Icaca3e6fef88621d683f6d6fa3016212847de4ea
Fixes: QTBUG-42567
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2019-07-11 10:46:23 +02:00
..
platformsocketengine prune cargo-culted and obsolete winsock deps from autotests 2018-07-19 13:31:08 +00:00
qabstractsocket Updated license headers 2016-01-21 18:55:18 +00:00
qhttpsocketengine Use qtConfig throughout in qtbase 2016-08-19 04:28:05 +00:00
qlocalsocket Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
qsctpsocket Network: Use canonical license headers 2017-02-28 15:34:01 +00:00
qsocks5socketengine tst_QSocks5SocketEngine::downloadBigFile(): Output elapsed time 2017-06-28 17:54:07 +00:00
qtcpserver Fix tst_QTcpServer::maxPendingConnections flakiness 2018-02-09 18:45:25 +00:00
qtcpsocket Windows: handle errors correctly when connecting to unreachable host 2019-07-11 10:46:23 +02:00
qudpsocket Make tst_QUdpSocket::lincLocalIPv6 less sadistic 2019-02-21 11:14:48 +00:00
socket.pro Modularize configure.json/.pri 2016-09-15 08:23:53 +00:00