desktop-app-info: Run test without display, they work with no issue

This commit is contained in:
Marco Trevisan (Treviño) 2022-10-21 21:17:36 +02:00
parent d4a31897ab
commit ec67c7dbf2
2 changed files with 0 additions and 12 deletions

View File

@ -16,12 +16,6 @@ test_launch_for_app_info (GAppInfo *appinfo)
const gchar *path;
gchar *uri;
if (g_getenv ("DISPLAY") == NULL || g_getenv ("DISPLAY")[0] == '\0')
{
g_test_skip ("No DISPLAY set");
return;
}
success = g_app_info_launch (appinfo, NULL, NULL, &error);
g_assert_no_error (error);
g_assert_true (success);

View File

@ -993,12 +993,6 @@ test_launch_as_manager (void)
gboolean launched = FALSE;
GAppLaunchContext *context;
if (g_getenv ("DISPLAY") == NULL || g_getenv ("DISPLAY")[0] == '\0')
{
g_test_skip ("No DISPLAY. Skipping test.");
return;
}
path = g_test_get_filename (G_TEST_BUILT, "appinfo-test.desktop", NULL);
appinfo = g_desktop_app_info_new_from_filename (path);