Merge the wip/gapplication branch
[platform/upstream/glib.git] / gio / tests / appinfo.c
1 #include <gio/gio.h>
2 #include <gio/gdesktopappinfo.h>
3
4 static void
5 test_launch (void)
6 {
7   GAppInfo *appinfo;
8
9   appinfo = (GAppInfo*)g_desktop_app_info_new_from_filename (SRCDIR "/appinfo-test.desktop");
10   g_assert (appinfo != NULL);
11
12   g_assert (g_app_info_launch (appinfo, NULL, NULL, NULL));
13 }
14
15 int
16 main (int argc, char *argv[])
17 {
18   g_type_init ();
19   g_test_init (&argc, &argv, NULL);
20
21   g_test_add_func ("/appinfo/launch", test_launch);
22
23   return g_test_run ();
24 }
25