diff options
author | Stephen Kelly <stephen.kelly@kdab.com> | 2012-04-23 19:24:13 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-04-24 17:29:42 +0200 |
commit | 4deaef6979b6904163b9fe2fe1ff34c0753cc947 (patch) | |
tree | 76bd8c26537e99ed06a238bda0d97554814ab25c /tests | |
parent | 4544ec931f0cb05d28134dc770629668afe83e5f (diff) |
Run DBus tests only if QtDBus is found.
It's not enough to check for UNIX because Qt may have been configured
without dbus, or we could be running on APPLE (on which DBus is not
commonly installed).
Change-Id: Ic57200dad42c0c12b292d1066f799c827294fe9a
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/cmake/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/auto/cmake/CMakeLists.txt b/tests/auto/cmake/CMakeLists.txt index fdcf2b76f8..5d059500b0 100644 --- a/tests/auto/cmake/CMakeLists.txt +++ b/tests/auto/cmake/CMakeLists.txt @@ -92,6 +92,9 @@ expect_fail(fail5) expect_pass("pass(needsquoting)6") expect_pass(pass7) expect_pass(pass8) -if (UNIX) + +# If QtDBus has been installed then run the tests for its macros. +find_package(Qt5DBus QUIET) +if (Qt5DBus_FOUND) expect_pass(pass9) endif() |