qt5base-lts/tests/auto/network/socket/qtcpsocket
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
..
stressTest Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
test Merge remote-tracking branch 'origin/5.7' into dev 2016-06-21 08:39:41 +02:00
.gitignore Moved network autotests into new directory structure 2011-09-09 09:32:17 +02:00
BLACKLIST Blacklist flaky cases 2018-02-09 18:45:23 +00:00
qtcpsocket.pro tst_QTcpSocket::suddenRemoteDisconnect - fix flakyness 2017-10-30 11:10:10 +00:00
tst_qtcpsocket.cpp Windows: handle errors correctly when connecting to unreachable host 2019-07-11 10:46:23 +02:00