tests/regex: Add the error messages to tests

It can be useful for debugging purposes
This commit is contained in:
Marco Trevisan (Treviño)
2025-10-23 22:37:35 +02:00
committed by Philip Withnall
parent 9f47e1c16f
commit c95a7be124

View File

@@ -131,6 +131,8 @@ test_new_fail (gconstpointer d)
g_assert (regex == NULL); g_assert (regex == NULL);
g_assert_error (error, G_REGEX_ERROR, data->expected_error); 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); g_error_free (error);
} }