qt5base-lts/tests/auto/dbus/qdbusinterface
Thiago Macieira aa83bacb14 Autotest: fix a race condition in verifying a peer D-Bus connected
On the unit test side, everything is sequential: we first ask for the
connection, verify that it is connected, then ask the remote side via
the session bus if it is connected. Unfortunately, the remote site may
handle things in a different order: it may handle the incoming function
call to "isConnected" before doing accept(2) on the listening socket.

So, instead, make the local side block until the connection is received
on the other side. On the remote, we don't block, instead we use the
feature of delayed replies.

Change-Id: Ie386938b8b39dd94a9d7e5913668125fb4a3c7da
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
2015-01-06 17:36:58 +01:00
..
qmyserver Autotest: fix a race condition in verifying a peer D-Bus connected 2015-01-06 17:36:58 +01:00
test Fix handling of subprocesses for QtDBus unit tests on Windows 2014-12-20 07:37:12 +01:00
.gitignore Moved dbus autotests into new directory structure 2011-09-01 09:37:08 +02:00
myobject.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qdbusinterface.pro all remaining tests: eliminated usage of qttest_p4.prf 2011-10-25 08:42:23 +02:00
tst_qdbusinterface.cpp Autotest: fix a race condition in verifying a peer D-Bus connected 2015-01-06 17:36:58 +01:00