Reorganize the "don't dump core from test subprocesses" code.
authorDan Winship <danw@gnome.org>
Sat, 23 Nov 2013 17:06:05 +0000 (12:06 -0500)
committerDan Winship <danw@gnome.org>
Sun, 24 Nov 2013 20:14:13 +0000 (15:14 -0500)
commit3d70db075005a94d7fd18ac8a8dbd0abb82bff9e
tree67824cc106af156d7e852e8e6a0ab03bc9309f94
parent97fac936708863a52d46cfb0ec3259e1b2c03d29
Reorganize the "don't dump core from test subprocesses" code.

g_test_init() was calling _g_messages_set_exit_on_fatal() from
subprocesses, to make fatal log messages call _exit() rather than
abort(), but the function name is sort of confusing, and we don't
really need it anyway, since g_log() can just call g_test_subprocess()
instead and decide for itself.

Likewise, update g_assertion_message() to do the check itself, rather
than calling into gmessages to do it, and fix
g_assertion_message_expr() to also check whether it should exit or
abort. (Previously it always called abort(), although this didn't
actually matter since that was dead code until
test_nonfatal_assertions was added.)

https://bugzilla.gnome.org/show_bug.cgi?id=711800
glib/Makefile.am
glib/gmessages-private.h [deleted file]
glib/gmessages.c
glib/gtestutils.c