From ec67c7dbf2b05e762834045d2a74f64ce4a3ad4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Fri, 21 Oct 2022 21:17:36 +0200 Subject: [PATCH] desktop-app-info: Run test without display, they work with no issue --- gio/tests/appinfo.c | 6 ------ gio/tests/desktop-app-info.c | 6 ------ 2 files changed, 12 deletions(-) diff --git a/gio/tests/appinfo.c b/gio/tests/appinfo.c index bd76729c4..b69194f75 100644 --- a/gio/tests/appinfo.c +++ b/gio/tests/appinfo.c @@ -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); diff --git a/gio/tests/desktop-app-info.c b/gio/tests/desktop-app-info.c index cd49bd95a..c7ff77047 100644 --- a/gio/tests/desktop-app-info.c +++ b/gio/tests/desktop-app-info.c @@ -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);