qt6-bb10/tests/auto
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
..
bic/data Add binary compatibility files for qtbase 5.14 branch 2019-12-20 10:41:11 +02:00
cmake CMake: Add support for auto-importing plugins in CMake 2019-08-12 18:23:58 +02:00
concurrent Introduce QT_NO_LINKED_LIST and mark QtBase (almost) free of it 2019-07-12 14:26:30 +02:00
corelib Detect double timer during single timeout in registerTimer test, and skip 2020-02-22 02:52:36 +01:00
dbus unblacklist passing tests 2019-07-08 11:01:42 +00:00
gui QShaderGenerator: Allow more expressions in input nodes 2020-02-20 08:00:20 +01:00
guiapplauncher
installed_cmake
network tst_qtcpsocket::bind - amend the recent fix 2020-02-22 03:36:54 +01:00
opengl Remove dead code from Qt 4 times 2019-08-20 22:27:46 +00:00
other Flatten version-specific blacklisting on macOS to all macOS versions 2020-01-22 17:58:31 +01:00
printsupport Remove the remaining usages of deprecated APIs of qtbase 2019-08-01 06:48:27 +02:00
shared Make tst_qwidget pass on High-DPI screens (Windows) 2019-06-03 10:41:08 +02:00
sql tst_QSqlQuery: fix some tests 2019-12-10 06:27:09 +01:00
testlib Fix crash when using signaldumper and sender is deleted 2019-09-23 08:27:18 +00:00
tools uic/Python: Add imports for Q(Date)Time, QKeySequence 2020-02-06 17:46:21 +01:00
widgets Stabilize QFileSystemModel::dirsBeforeFiles test 2020-02-22 02:52:44 +01:00
xml QDom: use QLocale::C when converting a double to a xml attribute 2019-11-19 17:33:33 +01:00
auto.pro
network-settings.h Autotest: adapt to certain OSes always allowing binding to low ports 2020-02-13 15:11:21 -08:00