qt5base-lts/tests/auto/network
Timur Pocheptsov c58ee54a70 tst_qtcpsocket::bind - amend the recent fix
0. The recent patch fixed the case when we can suddenly (meaning from
a particular version of Darwin) bind on a port number 1. Unfortunately,
it's not the case for IPv4 and while fixing one test case, the patch broke
another - so this patch addresses this.
1. Unfortunately, binding on a fixed port 1 on macOS made the test flaky
- we run this 'bind' several times and sometimes OS thinks port is already
bound (because of the previous test case) - closing the connection seems
to fix this problem (thus this patch do this also).
2. As a bonus a proper resource management added (aka RAII) where we would
previously leak a socket in case some QCOMPARE failed.

Fixes: QTBUG-81905
Change-Id: I90c128a332903bb44ab37de4775ca00d390dc162
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2020-02-22 03:36:54 +01:00
..
access tst_qnetworkreply: Print proxy warning to stderr instead of stdout 2020-02-05 15:01:10 +00:00
bearer Add cmdline feature to qmake 2019-02-18 07:12:14 +00:00
kernel tst_QNetworkInterface: don't force an IPv4 link-local address 2019-12-07 10:20:27 -08:00
selftest Skip instead of fail tests when test server is not available 2020-01-14 00:15:16 +01:00
socket tst_qtcpsocket::bind - amend the recent fix 2020-02-22 03:36:54 +01:00
ssl Flatten version-specific blacklisting on macOS to all macOS versions 2020-01-22 17:58:31 +01:00
network.pro Skip instead of fail tests when test server is not available 2020-01-14 00:15:16 +01:00