Merge branch 'wip/smcv/pipes' into 'main'

glib/tests/unix: Mostly pass O_CLOEXEC to g_unix_pipe_open()

See merge request GNOME/glib!3911
This commit is contained in:
Philip Withnall 2024-02-09 13:48:02 +00:00
commit f9cbd07003

View File

@ -140,7 +140,7 @@ test_pipe_struct (void)
g_test_summary ("Test GUnixPipe structure"); 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_no_error (error);
g_assert_true (res); g_assert_true (res);
@ -199,7 +199,7 @@ test_pipe_struct_auto (void)
GError *error = NULL; GError *error = NULL;
gboolean res; 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_no_error (error);
g_assert_true (res); g_assert_true (res);