mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-08 12:03:18 +01:00
tests/regex: Add the error messages to tests
It can be useful for debugging purposes
This commit is contained in:
committed by
Philip Withnall
parent
9f47e1c16f
commit
c95a7be124
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user