[glib] Fix desktop-app-info test
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Fix desktop-app-info test
- Date: Sat, 23 Nov 2013 23:15:58 +0000 (UTC)
commit e45372895dd31033726c0ddfa1f7ff55a52d907c
Author: Matthias Clasen <mclasen redhat com>
Date: Sat Nov 23 18:15:04 2013 -0500
Fix desktop-app-info test
The recent change to the search scoring algorithm made
nautilus and konqueror switch places in the search results.
Update the test to reflect that.
gio/tests/desktop-app-info.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/gio/tests/desktop-app-info.c b/gio/tests/desktop-app-info.c
index ddaa429..241d331 100644
--- a/gio/tests/desktop-app-info.c
+++ b/gio/tests/desktop-app-info.c
@@ -527,7 +527,9 @@ assert_strings_equivalent (const gchar *expected,
if (g_str_equal (expected_words[i], result_words[j]))
goto got_it;
- g_error ("Unable to find expected string '%s' in result '%s'", expected_words[i], result);
+ g_test_message ("Unable to find expected string '%s' in result '%s'", expected_words[i], result);
+ g_test_fail ();
+
got_it:
continue;
}
@@ -679,12 +681,12 @@ test_search (void)
"Access and organize files\n", TRUE, TRUE, NULL, NULL);
/* make sure localised searching works properly */
- assert_search ("foliumi", "kde4-konqbrowser.desktop\n"
- "nautilus.desktop\n"
+ assert_search ("foliumi", "nautilus.desktop\n"
+ "kde4-konqbrowser.desktop\n"
"eog.desktop\n", TRUE, FALSE, "en_US.UTF-8", "eo");
/* the user's eog.desktop has no translations... */
- assert_search ("foliumi", "kde4-konqbrowser.desktop\n"
- "nautilus.desktop\n", TRUE, TRUE, "en_US.UTF-8", "eo");
+ assert_search ("foliumi", "nautilus.desktop\n"
+ "kde4-konqbrowser.desktop\n", TRUE, TRUE, "en_US.UTF-8", "eo");
}
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]