summaryrefslogtreecommitdiff
path: root/glib/gtestutils.h
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-11-15 22:26:54 -0500
committerDan Winship <danw@gnome.org>2012-12-05 11:15:19 -0500
commite97a2f4195fb5bd8d7777651232dc10487a1ed92 (patch)
treef9adc87df31c162cae422fbe183a44ede8f9d2b2 /glib/gtestutils.h
parentac025007cc571cd767fac8cbd6f937d01773ce28 (diff)
downloadglib-e97a2f4195fb5bd8d7777651232dc10487a1ed92.tar.gz
win32: suppress fatal error dialog box when running tests
When running a test program (ie, if g_test_init() has been called), don't pop up a dialog box when a fatal error occurs. Just print the message to stderr and exit. https://bugzilla.gnome.org/show_bug.cgi?id=679683
Diffstat (limited to 'glib/gtestutils.h')
-rw-r--r--glib/gtestutils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/glib/gtestutils.h b/glib/gtestutils.h
index 967fa63b0..372151922 100644
--- a/glib/gtestutils.h
+++ b/glib/gtestutils.h
@@ -92,6 +92,7 @@ void g_test_init (int *argc,
char ***argv,
...);
/* query testing framework config */
+#define g_test_initialized() (g_test_config_vars->test_initialized)
#define g_test_quick() (g_test_config_vars->test_quick)
#define g_test_slow() (!g_test_config_vars->test_quick)
#define g_test_thorough() (!g_test_config_vars->test_quick)