From aa792598ea74bf09b6c555d7e1fb027070fb2363 Mon Sep 17 00:00:00 2001 From: Jakub Janků Date: Sun, 15 Nov 2020 15:46:47 +0100 Subject: build: test session info only with non-dummy implementation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ů --- Makefile.am | 5 ++--- 1 file 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 -- cgit v1.2.3