diff options
author | Jakub Janků <jjanku@redhat.com> | 2020-11-15 15:46:47 +0100 |
---|---|---|
committer | Jakub Janků <jjanku@redhat.com> | 2020-11-15 15:46:47 +0100 |
commit | aa792598ea74bf09b6c555d7e1fb027070fb2363 (patch) | |
tree | 5e76a32d3c6e81c8334c16bfe7d1ff69c39da362 | |
parent | 396c2b2c7d77a42065fa19ed4959a2256637e9a1 (diff) |
build: test session info only with non-dummy implementation
The test, as it is written at the moment, only makes sense
with console-kit or systemd implementation. With the dummy one,
the test fails, but it's not an error in the vdagent code.
Signed-off-by: Jakub Janků <jjanku@redhat.com>
-rw-r--r-- | Makefile.am | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am index f642793..47d7820 100644 --- a/Makefile.am +++ b/Makefile.am @@ -126,20 +126,19 @@ tests_test_session_info_SOURCES = \ tests/test-session-info.c \ $(NULL) -check_PROGRAMS += tests/test-session-info - if HAVE_CONSOLE_KIT src_spice_vdagentd_SOURCES += src/vdagentd/console-kit.c tests_test_session_info_SOURCES += src/vdagentd/console-kit.c +check_PROGRAMS += tests/test-session-info else if HAVE_LIBSYSTEMD_LOGIN src_spice_vdagentd_SOURCES += src/vdagentd/systemd-login.c tests_test_session_info_CFLAGS += $(LIBSYSTEMD_LOGIN_CFLAGS) tests_test_session_info_LDADD += $(LIBSYSTEMD_LOGIN_LIBS) tests_test_session_info_SOURCES += src/vdagentd/systemd-login.c +check_PROGRAMS += tests/test-session-info else src_spice_vdagentd_SOURCES += src/vdagentd/dummy-session-info.c -tests_test_session_info_SOURCES += src/vdagentd/dummy-session-info.c endif endif |