qt6-bb10/tests/auto/network
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
..
access SSL: Update an about-to-expire certificate 2019-06-24 15:18:47 +02:00
bearer Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
kernel Populate test data for reverse lookups using system tools 2019-04-05 05:50:18 +00:00
socket Windows: handle errors correctly when connecting to unreachable host 2019-07-11 10:46:23 +02:00
ssl Revert "Temporarily skip tst_QSslSocket::resume" 2019-07-03 13:04:54 +02:00
network.pro