summary refs log tree commit diff stats
path: root/tests/unit/test-io-channel-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/test-io-channel-file.c')
-rw-r--r--tests/unit/test-io-channel-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test-io-channel-file.c b/tests/unit/test-io-channel-file.c
index 29038e67b6..1977006ce9 100644
--- a/tests/unit/test-io-channel-file.c
+++ b/tests/unit/test-io-channel-file.c
@@ -109,7 +109,7 @@ static void test_io_channel_pipe(bool async)
     QIOChannelTest *test;
     int fd[2];
 
-    if (pipe(fd) < 0) {
+    if (!g_unix_open_pipe(fd, FD_CLOEXEC, NULL)) {
         perror("pipe");
         abort();
     }