mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-01 05:13:06 +02:00
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:
commit
f9cbd07003
@ -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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user