summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-06-29 14:51:12 +0100
committerRichard Hughes <richard@hughsie.com>2016-06-29 14:51:12 +0100
commit0eb52a724adaff5ab666a42567f157caf5e45f6c (patch)
treecdcc806354129ea6ea05ead82965d698b2ed9079
parentfd3ad9f97333be7f368f3fcd5537b5e57b371859 (diff)
downloadappstream-glib-0eb52a724adaff5ab666a42567f157caf5e45f6c.tar.gz
trivial: Fix 'make check' without libstemmer
-rw-r--r--libappstream-glib/as-self-test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-glib/as-self-test.c b/libappstream-glib/as-self-test.c
index e368eaf..6b66730 100644
--- a/libappstream-glib/as-self-test.c
+++ b/libappstream-glib/as-self-test.c
@@ -2622,7 +2622,11 @@ as_test_app_search_func (void)
g_assert_cmpint (as_app_search_matches (app, "software"), ==, 96);
g_assert_cmpint (as_app_search_matches (app, "soft"), ==, 24);
+#ifdef HAVE_LIBSTEMMER
g_assert_cmpint (as_app_search_matches (app, "installing"), ==, 32);
+#else
+ g_assert_cmpint (as_app_search_matches (app, "install"), ==, 32);
+#endif
g_assert_cmpint (as_app_search_matches (app, "awesome"), ==, 128);
g_assert_cmpint (as_app_search_matches (app, "c++"), ==, 128);
g_assert_cmpint (as_app_search_matches (app, "d-feet"), ==, 128);