From 82c9a4631da65a16e81323227316f7151ace5afd Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Fri, 9 Feb 2024 11:13:56 +0000 Subject: [PATCH] glib/tests/unix: Mostly pass O_CLOEXEC to g_unix_pipe_open() Using FD_CLOEXEC here is now deprecated. Keep exactly one call with FD_CLOEXEC, in test_pipe_fd_cloexec(). Signed-off-by: Simon McVittie --- glib/tests/unix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib/tests/unix.c b/glib/tests/unix.c index e4003f730..df12f67d1 100644 --- a/glib/tests/unix.c +++ b/glib/tests/unix.c @@ -140,7 +140,7 @@ test_pipe_struct (void) g_test_summary ("Test GUnixPipe structure"); - res = g_unix_pipe_open (&pair, FD_CLOEXEC, &error); + res = g_unix_pipe_open (&pair, O_CLOEXEC, &error); g_assert_no_error (error); g_assert_true (res); @@ -199,7 +199,7 @@ test_pipe_struct_auto (void) GError *error = NULL; gboolean res; - res = g_unix_pipe_open (&pair, FD_CLOEXEC, &error); + res = g_unix_pipe_open (&pair, O_CLOEXEC, &error); g_assert_no_error (error); g_assert_true (res);