summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/dbus/qdbustype/main.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-12-11 17:37:42 -0800
committerThiago Macieira <thiago.macieira@intel.com>2015-01-06 18:16:09 +0100
commit1fc4053337b55c98b66de63b4fae223f1eb72563 (patch)
treebd1a1819a14458a9a99a216b402230906c2b1497 /tests/benchmarks/dbus/qdbustype/main.cpp
parent12d32b017d9ff31332933eae28a3f7b46b9d3e49 (diff)
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>
Diffstat (limited to 'tests/benchmarks/dbus/qdbustype/main.cpp')
-rw-r--r--tests/benchmarks/dbus/qdbustype/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/benchmarks/dbus/qdbustype/main.cpp b/tests/benchmarks/dbus/qdbustype/main.cpp
index b405df99d5..4723ed1b97 100644
--- a/tests/benchmarks/dbus/qdbustype/main.cpp
+++ b/tests/benchmarks/dbus/qdbustype/main.cpp
@@ -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;
}