From: Matthias Clasen Date: Sun, 2 Jun 2013 05:46:21 +0000 (-0400) Subject: Improve GAppInfo test coverage X-Git-Tag: 2.37.2~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f655149e9d0bb48fc7ebb2c29bba13924f13056;p=platform%2Fupstream%2Fglib.git Improve GAppInfo test coverage --- 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 (); }