From c95a7be12405bb46ec875709aadb2c34b6435687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 23 Oct 2025 22:37:35 +0200 Subject: [PATCH] tests/regex: Add the error messages to tests It can be useful for debugging purposes --- glib/tests/regex.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/glib/tests/regex.c b/glib/tests/regex.c index 13361c488..a774683f7 100644 --- a/glib/tests/regex.c +++ b/glib/tests/regex.c @@ -131,6 +131,8 @@ test_new_fail (gconstpointer d) g_assert (regex == NULL); g_assert_error (error, G_REGEX_ERROR, data->expected_error); + g_test_message ("Compiling pattern /%s/ failed with error: %s", + data->pattern, error->message); g_error_free (error); }