Add Friulian translation
[glib.git] / gio / tests / appinfo-test.c
blob86d0e492c5984ee8cc4d74b555c0d8691c596a6b
1 #include <stdlib.h>
2 #include <gio/gio.h>
4 int
5 main (int argc, char *argv[])
7 const gchar *envvar;
9 g_test_init (&argc, &argv, NULL);
11 envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE");
12 if (envvar != NULL)
14 gchar *expected;
15 gint pid_from_env;
17 expected = g_test_build_filename (G_TEST_DIST, "appinfo-test.desktop", NULL);
18 g_assert_cmpstr (envvar, ==, expected);
19 g_free (expected);
21 envvar = g_getenv ("GIO_LAUNCHED_DESKTOP_FILE_PID");
22 g_assert (envvar != NULL);
23 pid_from_env = atoi (envvar);
24 g_assert_cmpint (pid_from_env, ==, getpid ());
27 return 0;