qt5base-lts/tests/auto/dbus/qdbusabstractinterface
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
..
qpinger 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
interface.cpp Update license headers and add new license files 2014-09-24 12:26:19 +02:00
interface.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
org.qtproject.QtDBus.Pinger.xml Let qdbusxml2cpp generate code that compiles: no '-' in variable names. 2013-07-01 17:04:26 +02:00
qdbusabstractinterface.pro Finish cleaning up com.trolltech -> org.qtproject in QtDBus 2012-04-16 00:07:39 +02:00
tst_qdbusabstractinterface.cpp Autotest: fix a race condition in verifying a peer D-Bus connected 2015-01-06 17:36:58 +01:00