Autotest: Make sure that we can place calls with disabled delivery

This often happens in applications. Besides, we are expecting at least a
call to RequestName to happen.

Change-Id: Ifd2454ffba454fd591d0ffff1425a84563267d19
Reviewed-by: David Faure <david.faure@kdab.com>
bb10
Thiago Macieira 2015-12-27 11:15:24 -02:00
parent 7e132066c1
commit b08d84d39e
1 changed files with 4 additions and 2 deletions

View File

@ -77,10 +77,12 @@ void tst_QDBusConnection_Delayed::delayedMessages()
QVERIFY(other.isConnected());
QVERIFY(!other.baseService().isEmpty());
// make a method call: those should work even if delivery is disabled
QVERIFY(session.interface()->isServiceRegistered(other.baseService()));
// acquire a name in the main session bus connection: the effect is immediate
QString name = "org.qtproject.tst_qdbusconnection_delayed-" +
QString::number(getpid());
// acquire a name in the main session bus connection
QVERIFY(session.registerService(name));
QVERIFY(other.interface()->isServiceRegistered(name));