From 64e630e13251e38b712b837252e086f0392b26bd Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 18 Jan 2024 15:23:53 +0000 Subject: [PATCH] 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 --- glib/tests/testing-helper.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/glib/tests/testing-helper.c b/glib/tests/testing-helper.c index da60f3e44..3f5629a48 100644 --- a/glib/tests/testing-helper.c +++ b/glib/tests/testing-helper.c @@ -55,6 +55,9 @@ test_fail (void) static 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!"); }