testutils: Factor out g_test_disable_crash_reporting()

We're already repeating this in 4 places, and in a subsequent commit
I'll extend it to do more.

Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
Simon McVittie
2023-07-24 17:06:50 +01:00
parent e051f4abaf
commit be2c9220d6
5 changed files with 29 additions and 26 deletions

View File

@@ -407,6 +407,8 @@ GLIB_AVAILABLE_IN_2_38
gboolean g_test_failed (void);
GLIB_AVAILABLE_IN_2_38
void g_test_set_nonfatal_assertions (void);
GLIB_AVAILABLE_IN_2_78
void g_test_disable_crash_reporting (void);
/**
* g_test_add: