talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 1cfe78b4d78fa274e90598a2a8b48bc2ea724a16
parent 14d7dcfd5a42e38e2d0230e4ec7716350a27c970
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Mon,  8 Oct 2018 10:34:08 +0200

Fix unit tests building, broken after the file-utils addition.

Diffstat:
Msrc/common/tests/Makefile.am | 4++--
Msrc/common/tests/codeconv_test.c | 1+
Asrc/common/tests/mock_prefs_common_get_flush_metadata.h | 5+++++
Msrc/common/tests/xml_test.c | 1+
4 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/common/tests/Makefile.am b/src/common/tests/Makefile.am @@ -12,11 +12,11 @@ AM_CPPFLAGS = \ TEST_PROGS += xml_test xml_test_SOURCES = xml_test.c -xml_test_LDADD = $(common_ldadd) ../xml.o ../stringtable.o ../utils.o ../codeconv.o ../quoted-printable.o ../unmime.o +xml_test_LDADD = $(common_ldadd) ../xml.o ../stringtable.o ../utils.o ../codeconv.o ../quoted-printable.o ../unmime.o ../file-utils.o TEST_PROGS += codeconv_test codeconv_test_SOURCES = codeconv_test.c -codeconv_test_LDADD = $(common_ldadd) ../codeconv.o ../utils.o ../quoted-printable.o ../unmime.o +codeconv_test_LDADD = $(common_ldadd) ../codeconv.o ../utils.o ../quoted-printable.o ../unmime.o ../file-utils.o TEST_PROGS += md5_test md5_test_SOURCES = md5_test.c diff --git a/src/common/tests/codeconv_test.c b/src/common/tests/codeconv_test.c @@ -3,6 +3,7 @@ #include "codeconv.h" #include "mock_prefs_common_get_use_shred.h" +#include "mock_prefs_common_get_flush_metadata.h" struct td { gchar *pre; /* Input string */ diff --git a/src/common/tests/mock_prefs_common_get_flush_metadata.h b/src/common/tests/mock_prefs_common_get_flush_metadata.h @@ -0,0 +1,5 @@ +gboolean prefs_common_get_flush_metadata(void) +{ + return FALSE; +} + diff --git a/src/common/tests/xml_test.c b/src/common/tests/xml_test.c @@ -3,6 +3,7 @@ #include "xml.h" #include "mock_prefs_common_get_use_shred.h" +#include "mock_prefs_common_get_flush_metadata.h" #define DATADIR "data/"