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>
This commit is contained in:
parent
4544ec931f
commit
4deaef6979
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user