dovecot-2.2: lib-fts: Don't crash in test-fts-filter if libstemm...

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 20 14:47:18 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/eff8774c6473
changeset: 18423:eff8774c6473
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Apr 20 17:44:21 2015 +0300
description:
lib-fts: Don't crash in test-fts-filter if libstemmer support isn't built in

diffstat:

 src/lib-fts/test-fts-filter.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (31 lines):

diff -r 197c703f32da -r eff8774c6473 src/lib-fts/test-fts-filter.c
--- a/src/lib-fts/test-fts-filter.c	Mon Apr 20 17:43:32 2015 +0300
+++ b/src/lib-fts/test-fts-filter.c	Mon Apr 20 17:44:21 2015 +0300
@@ -169,6 +169,7 @@
 
 }
 
+#ifdef HAVE_FTS_STEMMER
 static void test_fts_filter_stemmer_snowball_stem_english(void)
 {
 	int ret;
@@ -293,6 +294,7 @@
 	test_assert(filter == NULL);
 	test_end();
 }
+#endif
 
 #ifdef HAVE_FTS_NORMALIZER
 static void test_fts_filter_normalizer_swedish_short(void)
@@ -530,9 +532,11 @@
 		test_fts_filter_stopwords_fin,
 		test_fts_filter_stopwords_fra,
 		test_fts_filter_stopwords_fail_create,
+#ifdef HAVE_FTS_STEMMER
 		test_fts_filter_stemmer_snowball_stem_english,
 		test_fts_filter_stemmer_snowball_stem_french,
 		test_fts_filter_stopwords_stemmer_eng,
+#endif
 #ifdef HAVE_FTS_NORMALIZER
 		test_fts_filter_normalizer_swedish_short,
 		test_fts_filter_normalizer_swedish_short_default_id,


More information about the dovecot-cvs mailing list