[glib] Improve GAppInfo test coverage
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Improve GAppInfo test coverage
- Date: Sun, 2 Jun 2013 05:48:30 +0000 (UTC)
commit 8f655149e9d0bb48fc7ebb2c29bba13924f13056
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jun 2 01:46:21 2013 -0400
Improve GAppInfo test coverage
gio/tests/mimeapps.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/mimeapps.c b/gio/tests/mimeapps.c
index 4d71ed9..35488e5 100644
--- a/gio/tests/mimeapps.c
+++ b/gio/tests/mimeapps.c
@@ -602,6 +602,19 @@ test_mime_ignore_nonexisting (void)
g_assert (appinfo == NULL);
}
+static void
+test_all (void)
+{
+ GList *all, *l;
+
+ all = g_app_info_get_all ();
+
+ for (l = all; l; l = l->next)
+ g_assert (G_IS_APP_INFO (l->data));
+
+ g_list_free_full (all, g_object_unref);
+}
+
int
main (int argc, char *argv[])
{
@@ -615,6 +628,7 @@ main (int argc, char *argv[])
g_test_add_func ("/appinfo/mime/scheme-handler", test_scheme_handler);
g_test_add_func ("/appinfo/mime/default-last-used", test_mime_default_last_used);
g_test_add_func ("/appinfo/mime/ignore-nonexisting", test_mime_ignore_nonexisting);
+ g_test_add_func ("/appinfo/all", test_all);
return g_test_run ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]