Tests: Move dbus specific tests to if HAVE_DBUS_DAEMON

These used to only be built on unix, but if you have dbus-daemon on
win32 we should really build them there too.
This commit is contained in:
Alexander Larsson
2012-04-19 18:12:23 +02:00
parent 234ddf131b
commit 21e049b253
2 changed files with 14 additions and 5 deletions

View File

@@ -3467,6 +3467,9 @@ if test x$enable_modular_tests = xyes; then
fi
AM_CONDITIONAL(HAVE_DBUS1, [test "x$have_dbus1" = "xyes"])
AC_CHECK_PROGS([DBUS_DAEMON], [dbus-daemon])
AM_CONDITIONAL([HAVE_DBUS_DAEMON], [test x$DBUS_DAEMON = xdbus-daemon ])
dnl
dnl Check for -Bsymbolic-functions linker flag used to avoid
dnl intra-library PLT jumps, if available.

View File

@@ -61,12 +61,10 @@ TEST_PROGS += \
resources \
$(NULL)
if OS_UNIX
if HAVE_DBUS_DAEMON
TEST_PROGS += \
actions \
gdbus-close-pending \
gdbus-connection \
gdbus-connection-flush \
gdbus-connection-loss \
gdbus-connection-slow \
gdbus-names \
@@ -77,11 +75,19 @@ TEST_PROGS += \
gdbus-threading \
gdbus-export \
gdbus-error \
gdbus-bz627724 \
gmenumodel \
$(NULL)
endif
if OS_UNIX
TEST_PROGS += \
gdbus-close-pending \
gdbus-connection-flush \
gdbus-peer \
gdbus-exit-on-close \
gdbus-non-socket \
gdbus-bz627724 \
gmenumodel \
appinfo \
contenttype \
mimeapps \