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:
Cosimo Cecchi 2010-12-28 12:17:10 +01:00
parent 562a834328
commit f248ab1b60

View File

@ -82,7 +82,7 @@ test_delete (void)
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);
res = g_app_info_can_delete (info);