mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-14 19:55:12 +01:00
tests: Fix indentation of a block in the appinfo test
No functional changes. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/glib/issues/538
This commit is contained in:
parent
46f47641c5
commit
8ddfbb308b
@ -204,34 +204,34 @@ test_launch_no_app_id (Fixture *fixture,
|
|||||||
g_test_bug ("791337");
|
g_test_bug ("791337");
|
||||||
|
|
||||||
for (i = 0; i < G_N_ELEMENTS (exec_line_variants); i++)
|
for (i = 0; i < G_N_ELEMENTS (exec_line_variants); i++)
|
||||||
{
|
{
|
||||||
gchar *desktop_file_contents;
|
gchar *desktop_file_contents;
|
||||||
GKeyFile *fake_desktop_file;
|
GKeyFile *fake_desktop_file;
|
||||||
GAppInfo *appinfo;
|
GAppInfo *appinfo;
|
||||||
gboolean loaded;
|
gboolean loaded;
|
||||||
|
|
||||||
g_test_message ("Exec line variant #%" G_GSIZE_FORMAT, i);
|
g_test_message ("Exec line variant #%" G_GSIZE_FORMAT, i);
|
||||||
|
|
||||||
desktop_file_contents = g_strdup_printf ("%s\n%s",
|
desktop_file_contents = g_strdup_printf ("%s\n%s",
|
||||||
desktop_file_base_contents,
|
desktop_file_base_contents,
|
||||||
exec_line_variants[i]);
|
exec_line_variants[i]);
|
||||||
|
|
||||||
/* We load a desktop file from memory to force the app not
|
/* We load a desktop file from memory to force the app not
|
||||||
* to have an app ID, which would check different codepaths.
|
* to have an app ID, which would check different codepaths.
|
||||||
*/
|
*/
|
||||||
fake_desktop_file = g_key_file_new ();
|
fake_desktop_file = g_key_file_new ();
|
||||||
loaded = g_key_file_load_from_data (fake_desktop_file, desktop_file_contents, -1, G_KEY_FILE_NONE, NULL);
|
loaded = g_key_file_load_from_data (fake_desktop_file, desktop_file_contents, -1, G_KEY_FILE_NONE, NULL);
|
||||||
g_assert_true (loaded);
|
g_assert_true (loaded);
|
||||||
|
|
||||||
appinfo = (GAppInfo*)g_desktop_app_info_new_from_keyfile (fake_desktop_file);
|
appinfo = (GAppInfo*)g_desktop_app_info_new_from_keyfile (fake_desktop_file);
|
||||||
g_assert (appinfo != NULL);
|
g_assert (appinfo != NULL);
|
||||||
|
|
||||||
test_launch_for_app_info (appinfo);
|
test_launch_for_app_info (appinfo);
|
||||||
|
|
||||||
g_free (desktop_file_contents);
|
g_free (desktop_file_contents);
|
||||||
g_object_unref (appinfo);
|
g_object_unref (appinfo);
|
||||||
g_key_file_unref (fake_desktop_file);
|
g_key_file_unref (fake_desktop_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
g_free (exec_line_variants[1]);
|
g_free (exec_line_variants[1]);
|
||||||
g_free (exec_line_variants[0]);
|
g_free (exec_line_variants[0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user