From 0eb52a724adaff5ab666a42567f157caf5e45f6c Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Wed, 29 Jun 2016 14:51:12 +0100 Subject: trivial: Fix 'make check' without libstemmer --- libappstream-glib/as-self-test.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.1