mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
refs #875, skip context unit test (DBus related) with no session bus
This commit is contained in:
committed by
Mathew Sutcliffe
parent
87fc64f86d
commit
09ea40a1f7
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
#include "testcontext.h"
|
#include "testcontext.h"
|
||||||
#include "blackcore/context/contextallproxies.h"
|
#include "blackcore/context/contextallproxies.h"
|
||||||
|
#include <QTest>
|
||||||
|
|
||||||
using namespace BlackCore::Context;
|
using namespace BlackCore::Context;
|
||||||
|
|
||||||
@@ -24,6 +25,12 @@ namespace BlackCoreTest
|
|||||||
void CTestContext::contextInitTest()
|
void CTestContext::contextInitTest()
|
||||||
{
|
{
|
||||||
// will cause asserts when signal connects fail
|
// will cause asserts when signal connects fail
|
||||||
|
QDBusConnection connection = QDBusConnection::sessionBus();
|
||||||
|
if (!connection.isConnected())
|
||||||
|
{
|
||||||
|
QSKIP("Cannot connect session DBus, skip unit test");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
CContextAudioProxy::unitTestRelaySignals();
|
CContextAudioProxy::unitTestRelaySignals();
|
||||||
CContextNetworkProxy::unitTestRelaySignals();
|
CContextNetworkProxy::unitTestRelaySignals();
|
||||||
|
|||||||
Reference in New Issue
Block a user