[glib/wip/3v1n0/termina-freebsd: 2/2] desktop-app-info: Just use self project proc path




commit c463bc0ec519ed444dcd46bd4cb0d04953860669
Author: Marco Trevisan (Treviño) <mail 3v1n0 net>
Date:   Tue Oct 18 16:55:56 2022 +0200

    desktop-app-info: Just use self project proc path

 gio/tests/desktop-app-info.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/gio/tests/desktop-app-info.c b/gio/tests/desktop-app-info.c
index dcda43d6fe..fa46ae6b84 100644
--- a/gio/tests/desktop-app-info.c
+++ b/gio/tests/desktop-app-info.c
@@ -1214,10 +1214,6 @@ get_terminal_divider (const char *terminal_name)
 static void
 test_launch_uris_with_terminal (gconstpointer data)
 {
-#if defined(__FreeBSD__)
-  /* FIXME: https://gitlab.gnome.org/GNOME/glib/-/issues/2781 */
-  g_test_skip ("/proc pipe sharing currently doesn’t work reliably on FreeBSD CI");
-#else
   int fds[2];
   const char *terminal_exec = data;
   char *old_path;
@@ -1250,7 +1246,7 @@ test_launch_uris_with_terminal (gconstpointer data)
 
   terminal_path = g_build_filename (bin_path, terminal_exec, NULL);
   output_fd_path = g_strdup_printf (G_DIR_SEPARATOR_S "proc"
-                                    G_DIR_SEPARATOR_S "%" G_PID_FORMAT
+                                    G_DIR_SEPARATOR_S "self"
                                     G_DIR_SEPARATOR_S "fd"
                                     G_DIR_SEPARATOR_S "%d",
                                     getpid (), fds[0]);
@@ -1342,7 +1338,6 @@ test_launch_uris_with_terminal (gconstpointer data)
   g_clear_error (&error);
   g_clear_list (&paths, NULL);
   g_clear_list (&uris, g_free);
-#endif
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]