mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
gtestutils: Add G_TEST_SUBPROCESS_DEFAULT, G_TEST_TRAP_DEFAULT
This makes calls to test subprocesses with default behaviour more self-documenting. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
@@ -222,7 +222,7 @@ test_non_socket (void)
|
||||
|
||||
/* This is #ifdef G_OS_UNIX anyway, so just use g_test_trap_fork() */
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
||||
if (!g_test_trap_fork (0, 0))
|
||||
if (!g_test_trap_fork (0, G_TEST_TRAP_DEFAULT))
|
||||
{
|
||||
/* parent */
|
||||
g_object_unref (streams[0]);
|
||||
|
Reference in New Issue
Block a user