mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-09 10:44:04 +02:00
tests: Disable crash reporting in g_error() path in testing-helper
This avoids four coredumps being processed for every run of the `testing` unit tests (which test `GTest`). Signed-off-by: Philip Withnall <pwithnall@gnome.org>
This commit is contained in:
@@ -55,6 +55,9 @@ test_fail (void)
|
|||||||
static void
|
static void
|
||||||
test_error (void)
|
test_error (void)
|
||||||
{
|
{
|
||||||
|
/* We expect this test to abort, so try to avoid that creating a coredump */
|
||||||
|
g_test_disable_crash_reporting ();
|
||||||
|
|
||||||
g_error ("This should error out\nBecause it's just\nwrong!");
|
g_error ("This should error out\nBecause it's just\nwrong!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user