mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
gtestutils: deprecate g_test_trap_fork()
https://bugzilla.gnome.org/show_bug.cgi?id=679683
This commit is contained in:
@@ -220,6 +220,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))
|
||||
{
|
||||
/* parent */
|
||||
@@ -230,6 +231,7 @@ test_non_socket (void)
|
||||
g_assert_cmpint (kill (first_child, SIGTERM), ==, 0);
|
||||
return;
|
||||
}
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS;
|
||||
|
||||
/* second child */
|
||||
|
||||
|
Reference in New Issue
Block a user