qt5base-lts/tests/auto/dbus/qdbusabstractadaptor/qmyserver
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.cpp Autotest: fix a race condition in verifying a peer D-Bus connected 2015-01-06 17:36:58 +01:00
qmyserver.pro Fix handling of subprocesses for QtDBus unit tests on Windows 2014-12-20 07:37:12 +01:00