mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-10-31 08:22:16 +01:00 
			
		
		
		
	desktop-app-info: Run test without display, they work with no issue
This commit is contained in:
		| @@ -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); | ||||
|   | ||||
| @@ -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); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user