mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-30 13:53:30 +02:00
Don't g_test_assert_expected_messages for g_error
Don't allow the user to assert for expected g_error(). They need to use subprocess for this. https://bugzilla.gnome.org/show_bug.cgi?id=709615
This commit is contained in:
@@ -1159,6 +1159,7 @@ g_test_expect_message (const gchar *log_domain,
|
||||
|
||||
g_return_if_fail (log_level != 0);
|
||||
g_return_if_fail (pattern != NULL);
|
||||
g_return_if_fail (~log_level & G_LOG_LEVEL_ERROR);
|
||||
|
||||
expected = g_new (GTestExpectedMessage, 1);
|
||||
expected->log_domain = g_strdup (log_domain);
|
||||
|
Reference in New Issue
Block a user