qt5base-lts/tests/auto
Robin Burchell a84b42e619 Fix QTcpServer::listen() returning true when the port is in use on OS X.
Way back in the mists of time, someone added SO_REUSEPORT to socket binding,
which was great, because otherwise it meant that multiple UDP sockets couldn't
share the same port on OS X (as platforms with SO_REUSEPORT apparently don't
support rebinding with SO_REUSEADDR).

However: SO_REUSEPORT also means that *any* bind on a port will succeed, which
is most definitely not wanted in the case of TCP sockets, so check the socket
type before performing the actual bind.

Also test that multiple listens don't take effect.

Change-Id: I2f8d450bcfb8a7f3abd8918a4e789a850281dd13
Done-with: Thiago Macieira
Done-with: Shane Kearns
Task-number: QTBUG-6305
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
2012-04-02 14:52:48 +02:00
..
compilerwarnings/data Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
concurrent Remove commented code from qtconcurrentmap autotest. 2012-03-14 07:51:45 +01:00
corelib Properly detach when the modified object is a sub object 2012-03-29 16:08:40 +02:00
dbus Remove comment about QVariantList and QVariantMap. 2012-03-28 03:18:56 +02:00
gui Harfbuzz-thai - fix buffer overflow when setting item attributes 2012-04-02 14:52:48 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Fix QTcpServer::listen() returning true when the port is in use on OS X. 2012-04-02 14:52:48 +02:00
opengl EGLFS: Integrate building into configure. 2012-03-21 03:03:29 +01:00
other Fix IAccessible2 for Windows, enable MSAA/IAccessible for MinGW. 2012-03-27 12:29:46 +02:00
printsupport Windows: Make tst_qprinter significant again since the test is passing 2012-03-31 08:42:06 +02:00
shared Added some convenience API for platform input contexts 2012-04-01 20:13:51 +02:00
sql Add payload to QSqlDriver notification with PSQL implementation. 2012-03-31 08:40:55 +02:00
testlib Fix some compiler warnings in tests. 2012-03-27 16:35:39 +02:00
tools Use "qt-project.org" instead of "trolltech" in the resource system 2012-03-28 07:50:06 +02:00
widgets Testability for password mask delay 2012-04-01 20:13:51 +02:00
xml Fix some compiler warnings in tests. 2012-03-27 16:35:39 +02:00
auto.pro Disable some tests and examples when --no-widgets is specified 2012-03-19 20:16:04 +01:00
network-settings.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
platformquirks.h Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
test.pl Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00