mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 13:23:07 +02:00
desktop-app-info: Run test without display, they work with no issue
This commit is contained in:
parent
d4a31897ab
commit
ec67c7dbf2
@ -16,12 +16,6 @@ test_launch_for_app_info (GAppInfo *appinfo)
|
|||||||
const gchar *path;
|
const gchar *path;
|
||||||
gchar *uri;
|
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);
|
success = g_app_info_launch (appinfo, NULL, NULL, &error);
|
||||||
g_assert_no_error (error);
|
g_assert_no_error (error);
|
||||||
g_assert_true (success);
|
g_assert_true (success);
|
||||||
|
@ -993,12 +993,6 @@ test_launch_as_manager (void)
|
|||||||
gboolean launched = FALSE;
|
gboolean launched = FALSE;
|
||||||
GAppLaunchContext *context;
|
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);
|
path = g_test_get_filename (G_TEST_BUILT, "appinfo-test.desktop", NULL);
|
||||||
appinfo = g_desktop_app_info_new_from_filename (path);
|
appinfo = g_desktop_app_info_new_from_filename (path);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user