qt5base-lts/tests/auto/dbus
Thiago Macieira f8b5142e30 Fix race condition in tst_QDBusConnection::pendingCallWhenDisconnected
The test sent a message and hoped that the "delete server" would cause
the server object in the QDBusConnectionManager thread be deleted before
it could receive and process the message. That's racy, because on some
CI machines, it did and then sent back an error reply indicating the
object sought was not found.

Instead, let's use a child process that we can kill to make it exit at
the right time.

I've chosen to use dbus-daemon itself, because that lets us test the
actual conditions that triggered the original bug: the daemon getting
killed during a desktop session shutdown on Linux.

Change-Id: I87e17314d8b24ae983b1fffd1454483aea87c921
Reviewed-by: Tony Sarajärvi <tony.sarajarvi@qt.io>
2016-06-06 11:39:53 +00:00
..
qdbusabstractadaptor tst_QDBusAbstractAdaptor: fix reception of signals from P2P connection 2015-09-15 02:09:00 +00:00
qdbusabstractinterface tst_QDBusAbstractInterface: fix racy test failing every so often 2015-09-24 07:37:05 +00:00
qdbusconnection Fix race condition in tst_QDBusConnection::pendingCallWhenDisconnected 2016-06-06 11:39:53 +00:00
qdbusconnection_delayed Autotest: Make sure that we can place calls with disabled delivery 2016-01-03 19:16:33 +00:00
qdbusconnection_no_app And move the creation of connections to the thread 2015-09-15 02:08:45 +00:00
qdbusconnection_no_bus Autotest: test both libdbus-1 load failure and connection failure 2016-01-02 02:06:10 +00:00
qdbusconnection_no_libdbus Autotest: rename the test class so it's different in this test 2016-01-30 03:20:54 +00:00
qdbusconnection_spyhook Add an autotest for the QtDBus message spy hook 2016-05-09 05:31:11 +00:00
qdbuscontext Tests: remove insignificant flag for dbus tests on osx 2015-03-27 18:37:30 +00:00
qdbusinterface Make sure the QDBusVirtualObject virtuals are called in the right thread 2016-05-09 16:21:50 +00:00
qdbuslocalcalls Tests: remove insignificant flag for dbus tests on osx 2015-03-27 18:37:30 +00:00
qdbusmarshall tst_QDBusMarshall: make sure we compile on linked, old dbus 2016-05-09 05:30:43 +00:00
qdbusmetaobject Autotest: Mark D-Bus tests that don't connect to the bus as parallel 2016-01-02 02:05:52 +00:00
qdbusmetatype Autotest: Mark D-Bus tests that don't connect to the bus as parallel 2016-01-02 02:05:52 +00:00
qdbuspendingcall Use a dedicated thread for handling incoming libdbus-1 events 2015-09-15 02:08:36 +00:00
qdbuspendingreply Tests: remove insignificant flag for dbus tests on osx 2015-03-27 18:37:30 +00:00
qdbusreply Tests: remove insignificant flag for dbus tests on osx 2015-03-27 18:37:30 +00:00
qdbusservicewatcher QDBusServiceWatcher: Move the logic to QDBusConnectionPrivate 2015-09-15 02:08:50 +00:00
qdbusthreading Tests: remove insignificant flag for dbus tests on osx 2015-03-27 18:37:30 +00:00
qdbustype Autotest: Mark D-Bus tests that don't connect to the bus as parallel 2016-01-02 02:05:52 +00:00
qdbusxmlparser Autotest: Mark D-Bus tests that don't connect to the bus as parallel 2016-01-02 02:05:52 +00:00
dbus.pro Add an autotest for the QtDBus message spy hook 2016-05-09 05:31:11 +00:00