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:
parent
12d32b017d
commit
1fc4053337
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user