[glib/halfline/test-case-pipe-confusion: 11/11] tests/desktop-app-info: Make sure scripts writes to the right end of the pipe




commit 53a9d01e699a30f63962c4b41e963f374875ae78
Author: Ray Strode <rstrode redhat com>
Date:   Mon Oct 17 14:44:14 2022 -0400

    tests/desktop-app-info: Make sure scripts writes to the right end of the pipe
    
    pipes need to be written in the write end, not the read end.
    
    This commit makes that change in a recent test added.
    
    Might help with this error message I'm seeing in CI:
    
    /tmp/bin-path-H1UQT1/gnome-terminal: cannot create /proc/38961/fd/6: No such file or directory

 gio/tests/desktop-app-info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gio/tests/desktop-app-info.c b/gio/tests/desktop-app-info.c
index f49db4af7d..2f9cdda786 100644
--- a/gio/tests/desktop-app-info.c
+++ b/gio/tests/desktop-app-info.c
@@ -1247,7 +1247,7 @@ test_launch_uris_with_terminal (gconstpointer data)
                                     G_DIR_SEPARATOR_S "%" G_PID_FORMAT
                                     G_DIR_SEPARATOR_S "fd"
                                     G_DIR_SEPARATOR_S "%d",
-                                    getpid (), fds[0]);
+                                    getpid (), fds[1]);
 
   input_stream = g_unix_input_stream_new (fds[0], TRUE);
   data_input_stream = g_data_input_stream_new (input_stream);


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