gtestutils: add g_test_trap_subprocess(), deprecate g_test_trap_fork()
authorDan Winship <danw@gnome.org>
Sat, 24 Nov 2012 20:58:27 +0000 (15:58 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 19 Dec 2012 19:35:08 +0000 (14:35 -0500)
commite3a29184d56b3a65664eb8859e61afbc804497c8
treeb0139a4539d4faa083f514952704ccb922458371
parent79fab3e647b77f948d2e946d630dedec9ce19f5f
gtestutils: add g_test_trap_subprocess(), deprecate g_test_trap_fork()

g_test_trap_fork() doesn't work on Windows and is potentially flaky on
unix anyway given the fork-but-don't-exec. Replace it with
g_test_trap_subprocess(), which re-spawns the same program with
arguments telling it to run a specific (otherwise-ignored) test case.

Make the existing g_test_trap_fork() unit tests be unix-only (they
never passed on Windows anyway), and add a parallel set of
g_test_trap_subprocess() tests.

https://bugzilla.gnome.org/show_bug.cgi?id=679683
docs/reference/glib/glib-sections.txt
glib/glib.symbols
glib/gmessages.c
glib/gtestutils.c
glib/gtestutils.h
glib/tests/testing.c