mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01:00
tests: unbreak desktop-app-info test for jhbuild
If we have a jhbuilt version of gedit installed, this will fail, as it will succeed in deleting its desktop file.
This commit is contained in:
parent
562a834328
commit
f248ab1b60
@ -82,7 +82,7 @@ test_delete (void)
|
|||||||
|
|
||||||
if (g_file_test ("/usr/share/applications/gedit.desktop", G_FILE_TEST_EXISTS))
|
if (g_file_test ("/usr/share/applications/gedit.desktop", G_FILE_TEST_EXISTS))
|
||||||
{
|
{
|
||||||
info = (GAppInfo*)g_desktop_app_info_new ("gedit.desktop");
|
info = (GAppInfo*)g_desktop_app_info_new_from_filename ("/usr/share/applications/gedit.desktop");
|
||||||
g_assert (info);
|
g_assert (info);
|
||||||
|
|
||||||
res = g_app_info_can_delete (info);
|
res = g_app_info_can_delete (info);
|
||||||
|
Loading…
Reference in New Issue
Block a user