summaryrefslogtreecommitdiffstats
path: root/tests/auto/dbus/qdbustype
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@theqtcompany.com>2015-07-20 15:13:48 +0200
committerUlf Hermann <ulf.hermann@theqtcompany.com>2015-08-13 15:02:55 +0000
commitefa379b9d565bd4ded021849a6e1f3dfd2843ade (patch)
tree5a88c2c59e1a4027ec77cff16fefd4a87d5cf669 /tests/auto/dbus/qdbustype
parent0ec809e027c643e42103b12340855c438b9a775b (diff)
Don't try to dynamically resolve dbus symbols if QT_NO_LIBRARY
Change-Id: I9e307653229c04746d66d3a9f3b3e46ea9a42381 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/dbus/qdbustype')
-rw-r--r--tests/auto/dbus/qdbustype/tst_qdbustype.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/dbus/qdbustype/tst_qdbustype.cpp b/tests/auto/dbus/qdbustype/tst_qdbustype.cpp
index 63444b61ad..4408729e7c 100644
--- a/tests/auto/dbus/qdbustype/tst_qdbustype.cpp
+++ b/tests/auto/dbus/qdbustype/tst_qdbustype.cpp
@@ -94,7 +94,11 @@ static void addFixedTypes()
// the library recognizes this as valid type first.
// The following function was added for Unix FD support, so if it is
// present, so is support for Unix FDs.
+# ifndef QT_NO_LIBRARY
bool supportsUnixFds = qdbus_resolve_conditionally("dbus_connection_can_send_type");
+# else
+ bool supportsUnixFds = false;
+# endif
# else
bool supportsUnixFds = true;
# endif