Allow the QtDBus type benchmark to run without libdbus-1 found

Change-Id: I1086e6cd6534dc96311e981cc9c73f501c1128ac
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@theqtcompany.com>
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
This commit is contained in:
Thiago Macieira 2014-12-11 17:37:42 -08:00
parent 12d32b017d
commit 1fc4053337

View File

@ -48,7 +48,8 @@ private Q_SLOTS:
static inline void benchmarkAddRow(const char *name, const char *data)
{
QTest::newRow(QByteArray(QByteArray("native-") + name)) << data << true;
if (qdbus_loadLibDBus())
QTest::newRow(QByteArray(QByteArray("native-") + name)) << data << true;
QTest::newRow(name) << data << false;
}